-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
Bug indexing a DataFrame with MultiIndex through .ix #2314
Comments
I also came across this behavior but wasn't able to extract a self contained example. It seems kind of crazy to me that
works but
doesn't. |
That's unfortunately because parts of the internal machinery in Index treats sorted vs unsorted differently. I added a fix for this. Please test and let me know if it works for you. Thanks for the bug report! |
it works for me now. thanks a lot! @manuteleco does it work for you, too? |
Looks good to me. Closing until anyone finds another problem |
Hi,
here is an example that demonstrates the error I'm getting (using pandas 0.9.2.dev-61766ec):
Example script:
which outputs:
The funny thing is that if, for instance, we swap the rows in the dataframe ( [[0, 0, 1, "y"], [0, 1, 0, "x"]] instead of [[0, 1, 0, "x"], [0, 0, 1, "y"]] ) it works just fine.
Regards.
The text was updated successfully, but these errors were encountered: