-
-
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
BUG: DTI/TDI/PI get_indexer_non_unique with incompatible dtype #32650
Conversation
lgtm. needs a rebase. is this user visible at a high level? e.g. in .loc or someting? |
Yes, will update the test introduced in #30446 |
also needs a rebase |
hmm this should probably raise a KeyError instead of a TypeError?
|
hmm, yep sounds right |
with pytest.raises(KeyError, match=msg): | ||
df.loc[tdi] | ||
|
||
with pytest.raises(KeyError, match=msg): |
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 would test the reverse as well (e.g. TDI is the index with a DTI as indexer). This should also raise for Period, I think? (these can be handled as followons)
thanks |
I'm pretty sure we can share more code here, but PeriodEngine needs some work first.