Skip to content
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

Add key option to sort methods #9855

Closed
SethMMorton opened this issue Apr 11, 2015 · 3 comments
Closed

Add key option to sort methods #9855

SethMMorton opened this issue Apr 11, 2015 · 3 comments
Labels
Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff Duplicate Report Duplicate issue or pull request Enhancement

Comments

@SethMMorton
Copy link

One feature that I am missing from dataframes is to sort with a custom key function, similar to the builtin sorted or list.sort. I see there is some effort to unify sorting in issue #8239, so it might be a nice to add this powerful functionality to pandas while the sorting API is being overhauled.

@jreback
Copy link
Contributor

jreback commented Apr 11, 2015

pls show an example of what/how this would be used as generally you can simply pass in the column name.

@jreback
Copy link
Contributor

jreback commented Apr 11, 2015

dupe of #3942
(you can add an example to that issue)

@jreback jreback added Enhancement Duplicate Report Duplicate issue or pull request Algos Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff labels Apr 11, 2015
@SethMMorton
Copy link
Author

I have added the specific example to the dupe. Thanks!

@jreback jreback closed this as completed Apr 12, 2015
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 Duplicate Report Duplicate issue or pull request Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants