Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ENH: add groupby & reduce support to EA #22762
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
ENH: add groupby & reduce support to EA #22762
Changes from 20 commits
90fb20e
63899aa
05f27a1
9dbbe51
d4c0a3e
bb3f37c
e7fbe0f
fddf938
49efedf
371ab54
d94b85e
6774791
6699080
29c3cf7
0fdaf68
08f5830
3e763c4
b543386
b808778
2b3d96f
3037ccd
b872607
aeaf5f3
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
We should maybe add a test for this specific aspect? (int vs foat return depending on the op)
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.
we already have them
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.
But not tests that assert the correct type of the result? Because you changed the behaviour here for certain methods, but didn't need to update any tests, so that seems to indicate this aspect is not covered?
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.
https://github.com/pandas-dev/pandas/pull/22762/files#diff-3523d268da9f1c7d4c82d4d27241ed07L590
these were already there, just expanded
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.
You are pointing to a groupby test, that didn't change when you did the above update, and that doesn't check that the type for the operations that are impacted (eg mean) ?
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.
I added a test that I tried to ask for. Can you have a look at it?
There is actually some more "complexity" here in the return value. If you access a single value from an IntegerArray, that gives you a np.int64 scalar (or other dtype). Now, the reductions here return a Python int.
I think we should try to be consistent here? (or for follow-up)