Update groupby
to return the key and the group, similar to itertools and pandas
#225
Labels
groupby
to return the key and the group, similar to itertools and pandas
#225
Is your feature request related to a problem? Please describe.
Currently, our
groupby
method doesn't return the keys of the groups. This is at odds with other packages (e.g. pandas and itertools) and also forcers developers to get the keys within loops (which is fine, but a bit more annoying and less slick).Describe the solution you'd like
We change the API from
to
Describe alternatives you've considered
Leave thing as is
Additional context
This would be a major breaking change, so we would probably want to roll it out with a keyword argument to control behaviour and a deprecation warning for at least two minor releases before making the change.
The text was updated successfully, but these errors were encountered: