Change group-by to accept cell paths#9020
Conversation
Codecov Report
Additional details and impacted files
|
|
I think this is a cool PR, thanks! I'm wondering if we can follow @Sygmei's suggestion in Discord and create a separate |
|
@rgwood I think you can make the two features co-exist by using the following I started working on this PR as well, I didn't know someone else was willing to take on this issue |
|
Good points, thanks. I might not have time/energy to implement that for a couple weeks. @Sygmei would you like to take this issue+code and run with it? If not no worries, I'll get back to this eventually. |
|
Sure, I'll give it a try ! |
|
@Sygmei Any luck? I may be able to pick this up again soon if you don't have time to work on it. |
|
Go ahead ! In the end I had a pretty busy schedule as well :( |
|
OK, this is ready to go! I've re-added the block/closure functionality and added an example. |
fdncred
left a comment
There was a problem hiding this comment.
I'm glad you figured out a way to keep the block type and also have the optional type. It seems more powerful now.
|
It's getting a bit close to the next release; I think this one can wait until after the release. |
|
let's go! |
Closes #9003.
This PR changes
group-byso that its optional argument is interpreted as a cell path. In turn, this lets users use?to ignore rows that are missing the column they wish to group on. For example:This removes the ability to passgroup-bya closure or block (I wasn't able to figure out how to make the 2 features coexist), and so it is a breaking change. I think this is OK; I didn't even knowgroup-bycould accept a closure or block because there was no example for that functionality.