-
-
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
API: series int-slicing always positional #49869
Conversation
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.
nice PR
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.
small comment, otherwise lgtm
assert (ser[:4] == 0).all() | ||
with tm.assert_produces_warning(FutureWarning, match=msg): | ||
assert not (ser[4:] == 0).any() | ||
ser[:4] = 0 |
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.
I might misunderstand this, but as I see it this would pass if both (getitem and setitem) are label based? If yes, can you set explicitly to 0 during creation?
Edit: Sorry missed the test name. Rather using iloc to get the values then?
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.
good idea, updated
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.
Could you merge main? otherwise lgtm
One more merge conflict otherwise good to merge |
Another conflict but feel free to merge when fixed |
Discussed on the dev call yesterday, decided to just revert the deprecation in 1.5.3. closing. |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.