-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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: loc with listlikes with missing elements #29802
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.
lgtm, couple of comments
pandas/tests/indexing/test_iloc.py
Outdated
result = df2.loc[idx] | ||
tm.assert_frame_equal(result, expected, check_index_type=False) | ||
with pytest.raises(KeyError, match="with any missing labels"): | ||
# TODO: should non-uniquness play a part in the error message? |
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.
hmm, yes I would agree 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.
sounds good, ill see what i can do here.
BTW in #6581 are we removing things in the 0.25.0 section or only the earlier ones?
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.
hmm the non-uniqueness doesn't seem to play any part in us getting here, so im now leaning towards not having a special message
rebased+green |
thanks @jbrockmendel |
I'm less confident in this one than in others. Some of the affected tests seem to involve non-missing labels in duplicate-containing indexes. Did I conflate multiple issues/deprecations?