We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.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 ...
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 ...
The text was updated successfully, but these errors were encountered:
BUG: MultiIndex.sortlevel did not preserve names GH #202
cd54aa9
Fixed. Thanks for the bug report
Sorry, something went wrong.
Thanks!
Pytest fix (pandas-dev#202)
da5c22d
pa.Table.to_pandas
No branches or pull requests
.sortlevel does not retain .names in MultiIndex. For example:
The text was updated successfully, but these errors were encountered: