-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Feature request: purely int-index based version of .ix #1052
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
hi-- I think http://pandas.pydata.org/pandas-docs/stable/whatsnew.html#api-changes-to-integer-indexing has the answer to your question. If you have an integer index and pass an integer that is not contained in it, a KeyError will be raised. Or is that not what you're saying? |
What I was saying about key error was just an example... which was not correct! Your answer make me little bit relieved. Thanks for that. The point (from another direction) is that I cannot say what Regarding implementation, you can just add two attributes, move the functionality of |
What to call it? There are two many names with |
Agreed. Definitely pretty high up on the todo list, just a matter of finding time to build it. |
This can probably be closed (by #2922)? |
First of all, thank you very much for the great library! I really like the scatter plot in the latest release. I am very new to the library, but I am enjoying it very much.
However, I am really uneasy about the fallback behavior of the
.ix
attribute. Why can't we have a purely label based version of.ix
and a purely integer index version of.ix
? I want pandas to raise an error when a data frame does not have integer label I pass rather than fallback to integer index based indexing, because "explicit is better than implicit".I can write a pull request if it is likely to be pulled. Or maybe you should write it because it is a big API change.
The text was updated successfully, but these errors were encountered: