Skip to content

REF: dispatch Series.rank to EA #45037

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 3 commits into from
Dec 27, 2021

Conversation

jbrockmendel
Copy link
Member

  • closes #xxxx
  • tests added / passed
  • Ensure all linting tests pass, see here for how to run them
  • whatsnew entry

Test coverage is severely lacking here.

Maybe could implement the general case in terms of argsort? cc @TomAugspurger @jorisvandenbossche

pct=pct,
)
else:
ranks = algos.rank(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you not just do this indiretion in algos?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

either way i guess

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i take it back, doing it in algos causes a RecursionError

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kk i see what you did for mode so maybe this ok

@jreback jreback added Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff ExtensionArray Extending pandas with custom dtypes or arrays. labels Dec 27, 2021
@jreback
Copy link
Contributor

jreback commented Dec 27, 2021

looks ok to me

@jbrockmendel jbrockmendel marked this pull request as ready for review December 27, 2021 16:54
@jreback jreback added this to the 1.4 milestone Dec 27, 2021
@jreback jreback merged commit 93631a9 into pandas-dev:master Dec 27, 2021
@jbrockmendel jbrockmendel deleted the ref-values_for_rank branch December 27, 2021 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants