-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
DEPR: int slicing always positional #53338
Conversation
Do you remember why this was reverted before? |
There was a deprecation #45324 that was basically the opposite of this (make slice-with-integer-index label-based) but i messed up the deprecation and didn't warn in enough cases (discussed #49612), so actually enforcing it would have broken a bunch more stuff. Also you pointed out (#49612 (comment)) a different inconsistency, and I guess in the Dec dev call we decided to punt on this. |
+1 for still moving forward with this deprecation |
@phofl @MarcoGorelli OK here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah no objections
wouldn't be opposed to completely deprecating slicing rows, and only supporting .iloc
/ loc
Looks good just needs a rebase |
Thanks @jbrockmendel |
* DEPR: int slicing always positional * update doc * okwarning
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.We've gone back and forth on this a couple times (#45324, #49869 would have done this as a breaking change in 2.0).