-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Reindex versus ix gotchas documentation text does not match example code #15116
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
@simon-b Thanks for the catch! Once this was correct, see eg the old docs of pandas 0.8 with this example: http://pandas.pydata.org/pandas-docs/version/0.8.0/gotchas.html#reindex-versus-ix-gotchas, but apparently that behaviour was changed (the docs of 0.9.0 already show the current behaviour) but the docs never updated. Personally, I would expect |
yep i will remove this section as well |
closes pandas-dev#14218 closes pandas-dev#15116 Author: Jeff Reback <[email protected]> Closes pandas-dev#15113 from jreback/ix and squashes the following commits: 1544f50 [Jeff Reback] DEPR: deprecate .ix in favor of .loc/.iloc
In the gotchas documentation, in the section "Reindex versus ix gotchas", there is the following example:
The example shows both
ix
andreindex
behaving the same. The subsequent text, however, states that they are expected to give different results:I am not sure if the indexing behaviour is correct and the documentation is wrong, or vice versa. It appears that in this case
ix
does not fall back on integer indexing while the text states that it does.The text was updated successfully, but these errors were encountered: