Skip to content

ENH: use EA.argmin/argmax in EA._reduce / Series.argmin/argmax #35178

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

Open
jorisvandenbossche opened this issue Jul 8, 2020 · 2 comments
Open
Labels
Closing Candidate May be closeable, needs more eyeballs Enhancement ExtensionArray Extending pandas with custom dtypes or arrays.

Comments

@jorisvandenbossche
Copy link
Member

Follow-up on #27801: that PR added ExtensionArray.argmin()/argmax() methods, but this is not yet used in the equivalent Series methods (through _reduce).

When adding this, we will need to decide on the following issues as well:

@jorisvandenbossche jorisvandenbossche added Enhancement ExtensionArray Extending pandas with custom dtypes or arrays. labels Jul 8, 2020
@jorisvandenbossche jorisvandenbossche added this to the Contributions Welcome milestone Jul 8, 2020
@TomAugspurger
Copy link
Contributor

I have a branch started for this at https://github.com/TomAugspurger/pandas/tree/32749-seriesidxminmax. Ran into the skipna returning -1 issue.

@jbrockmendel
Copy link
Member

Series.argmin is defined in base.IndexOpsMixin and does call delegate.argmin(). Is the idea here that going through _reduce is important?

@jbrockmendel jbrockmendel added the Closing Candidate May be closeable, needs more eyeballs label Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closing Candidate May be closeable, needs more eyeballs Enhancement ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

No branches or pull requests

4 participants