Skip to content

Sorting by multiple levels #3984

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

Closed
hayd opened this issue Jun 21, 2013 · 3 comments · Fixed by #6135
Closed

Sorting by multiple levels #3984

hayd opened this issue Jun 21, 2013 · 3 comments · Fixed by #6135
Assignees
Milestone

Comments

@hayd
Copy link
Contributor

hayd commented Jun 21, 2013

At the moment, you can use sortlevel to select one level to sort by and then "Data will be lexicographically sorted by the chosen level followed by the other levels (in order)"

Should this be the case?
Should we be able to specify multiple levels to sort by?

see http://stackoverflow.com/questions/17242970/multi-index-sorting-in-pandas

@cpcloud
Copy link
Member

cpcloud commented Jun 21, 2013

is the "(in order)" stmt here redundant? if not what does it mean?

@hayd
Copy link
Contributor Author

hayd commented Jun 21, 2013

I think it means if you have levels A,B,C,D,E then sortlevel by B sorts as B,A,C,D,E.

@ghost ghost assigned hayd Dec 6, 2013
@hayd
Copy link
Contributor Author

hayd commented Dec 6, 2013

Think should be option to only sort the given levels (not lexicographically the rest), not sure what a good kwarg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants