-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Ability to Sort DataFrame by Transformed Values #6663
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
Labels
Duplicate Report
Duplicate issue or pull request
Comments
just reindex |
I assume that I am doing something wrong here:
|
|
see also #3942 |
this issue is a dupe of that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's say I have a DataFrame of stock returns. It would be great to be able to sort easily the DataFrame by the
abs
value of the returns. Currently I do this by inserting a new column and then sorting on the new column and than slicing on the original columns. This is ungainly:It would be great if I could either pass a Series or a function to the sort method:
or
The text was updated successfully, but these errors were encountered: