-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG DataFrameGroupBy.agg
with list not respecting as_index=False
#53237
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add tests for this other than categorical in tests/groupby/aggregate/test_aggregate.py
@rhshadrach Thanks for your review! New test added and I've made your suggested modification. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Thanks @Charlie-XIAO |
…andas-dev#53237) * fix dataframegroupby.agg not respecting as_index=false * cleaned up code, removed breakpoints * cleaning up codes * final cleanup of code, ready for review, sry abt that * resolve typing (not sure) * used better approach * new test added; enh short circuiting * clean up code
…andas-dev#53237) * fix dataframegroupby.agg not respecting as_index=false * cleaned up code, removed breakpoints * cleaning up codes * final cleanup of code, ready for review, sry abt that * resolve typing (not sure) * used better approach * new test added; enh short circuiting * clean up code
doc/source/whatsnew/v2.1.0.rst
fileDealing with non-categorical data is fairly easy, but dealing with categorical data is kind of tricky. I'm currently taking a pretty dirty approach, so if maintainers have better solutions please let me know and I'll make changes correspondingly.