Skip to content

.sortlevel does not retain .names in MultiIndex #202

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
rsamson opened this issue Oct 6, 2011 · 2 comments
Closed

.sortlevel does not retain .names in MultiIndex #202

rsamson opened this issue Oct 6, 2011 · 2 comments
Labels
Milestone

Comments

@rsamson
Copy link

rsamson commented Oct 6, 2011

.sortlevel does not retain .names in MultiIndex. For example:

options
ForwardPrice Strike CallPut Premium
105169 57.2024993896 15.03 15.03 C 2.206
-41.0596008301 15.03 15.03 P 2.231
...

options.delevel()
SecurityID Delta ForwardPrice Strike CallPut Premium
0 105169 57.2 15.03 15.03 C 2.206
1 105169 -41.06 15.03 15.03 P 2.231
...

options = options.sortlevel(0)
options.delevel()
level_0 level_1 ForwardPrice Strike CallPut Premium
0 105169 -41.06 15.03 15.03 P 2.231
1 105169 57.2 15.03 15.03 C 2.206
...

@wesm
Copy link
Member

wesm commented Oct 6, 2011

Fixed. Thanks for the bug report

@wesm wesm closed this as completed Oct 6, 2011
@rsamson
Copy link
Author

rsamson commented Oct 6, 2011

Thanks!

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

No branches or pull requests

2 participants