-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
inconsistent indexing behaviour with multi index #5725
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
Comments
believe it or not, this is ony under PY3, when you happend to use 'A' as a column label (because that is a valid Timestamp....wierd but true) |
pls update to master and give a try..thanks for the report |
this works:
but i do not understand below, and why it does not throw
|
PY3 does such weird things with exceptions. I think they were trying to make it better, but just is more confusing. #5737 should fix this. This seems very simple, except that since pandas allows indexing with all kinds of things, several things needs to be tried in order to index properly, e.g. imagine that the first level of the index was not 'A','B','C' but a dates, then |
ok...master is update....give it a go |
You might find these other access methods useful This is the recommended actually
Specify a tuple for each element you want (could be a list of tuples too)
Cross sectional
|
confirmed it raises KeyError, thanks for quick fix |
i have a dataframe with multi-index as
however
The text was updated successfully, but these errors were encountered: