-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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: Series.__setitem__ with Float64Index falling back to positional #42215
Conversation
jbrockmendel
commented
Jun 25, 2021
- closes API: __getitem__[int] vs __setitem__[int] with Float64Index #33469
- tests added / passed
- Ensure all linting tests pass, see here for how to run them
- whatsnew entry
@jorisvandenbossche ok here? |
Looks good to me. Can you add an explicit test (eg with the example series from the issue) that checks the warning is raised if the key (as float) is not present and does not raise a warning when it is present (that case that already works correctly label-based right now)? There are no other index types that can end up in this case and trigger the warning? |
Good idea, will do.
Brainstorming I came up with 2 more cases; will update the whatsnew
|
i need to re-look can you rebase |
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.
lgtm. @jorisvandenbossche if comments