-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API: groupby with categoricals inconsistent with Series vs DataFrame result #20416
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Milestone
Comments
cc @batterseapower |
Thanks. FWIW I think this should be fixed by changing the DataFrame case to behave like Series, rather than the other way around. I suppose that someone must want the DataFrame-style behaviour, though? |
This looks to provide the correct output on master. Could use a test.
|
4 tasks
closed in #29343 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
from #17594 (comment)
[15] is showing all of the observed values, while [16] is showing the cartesian values. [16] is consistent with the categorical method of grouping.
The text was updated successfully, but these errors were encountered: