-
-
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
COMPAT: warn on ambiguous .ix indexing #7187
Comments
this IS expected from http://pandas-docs.github.io/pandas-docs-travis/indexing.html#indexing-fallback |
But if the guess is numeric index, then shouldn't it throw an IndexError as 0 is not in the index? |
nope....that is the defined behavior of I agree its not intuitive and should not guess, but noone put in effort to put up the warning. ok...so will mark this as a issue for 0.15.0 then (to put up a warning in a case like this) |
Ok thanks |
Closing due to deprecation in #15113 |
I know in this case one should use iloc, It's not clear what ix should do in this case, but the df.ix[:,[0]] case is certainly not what is expected.
How about either
when asked to ix an index like this.
The text was updated successfully, but these errors were encountered: