-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: idxmax/min (and argmax/min) for Series with underlying ExtensionArray #37924
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
Merged
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c000668
fix idxmax/min for Series with underlying 'Int' datatype
tonyyyyip 1632081
test added
tonyyyyip 8018586
editted test
tonyyyyip b076d23
added test for argmax argmin
tonyyyyip 664e4ec
added validations
tonyyyyip 8403c38
The overhaul
tonyyyyip 741c97a
2nd attempt
tonyyyyip 131ae83
2nd attempt
tonyyyyip 3269fb5
simplified idxmaxmin and added parameterised tests
tonyyyyip 0cfb621
fixed newbie mistake
tonyyyyip d4b13ac
fixed newbie mistake
tonyyyyip 5648eb9
used any_numeric_dtype in test
tonyyyyip 9a1b332
does this solve the pre-commit check failure now?
tonyyyyip 9f5e683
moved EA's skipna logic from Series.argmin/max to EA.argmin/max
tonyyyyip e73a3d1
moved EA's skipna logic back to Series
tonyyyyip d78e28c
moved EA's skipna logic back to Series
tonyyyyip 66f3187
added whatsnew entry and extra tests
tonyyyyip 6f01069
moved tests to tests/reductions/rest_reductions.py
tonyyyyip 3540797
added 1.3 whatsnew entry
tonyyyyip 6d0b68e
moved and restructured tests
tonyyyyip da5bf06
Merge branch 'master' into fix-argmax
tonyyyyip 4f6d111
moved tests to pandas/tests/extensions/methods.py
tonyyyyip aa909e9
moved tests to pandas/tests/extensions/methods.py
tonyyyyip dd0ecde
Merge branch 'fix-argmax' of https://github.com/tonyyyyip/pandas into…
tonyyyyip File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
no longer validating args/kwargs?
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.
sorry missed this comment
cc @tonyyyyip
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.
Right. I think if we let
idxmax
callself.argmax(axis=axis, skipna=skipna, *args, **kwargs)
then the args and kwargs can be validated by argmax's validator. I can make another PR if this is desirable.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.
that would be great @tonyyyyip