-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: #10645 in using MultiIndex.__contains__ #10675
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
Conversation
if util.get_value_at(values, loc) != val: | ||
try: | ||
if util.get_value_at(values, loc) != val: | ||
raise KeyError(val) |
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.
this just papers over things and does not solve the issue
needs tests |
Thanks for mentioning about missing test. Just added. :) |
I revisit this issue and Yes, you're right @jreback I did further investigation and it seems a odd behavior of Cython. so this PR doesn't solve the issue. I'd like to finish this issue. Do you have any idea with this? Anything would be appreciated. |
so the indexes have different behavior if > 1M elements on lookups. so that is a different path that is taken. |
This isn't Cython issue. https://github.com/pydata/pandas/blob/master/pandas/index.pyx#L141-L148 So we should handle this How's your thought? @jreback |
@ scari Gr8! Could you add test cases and release note for #10692? Then, pls squash to a single commit. |
this is not correct |
Okay. I'll take another look at this. |
@scari I'll submit a PR if you don't have time to come back to this. |
replaced by #11049 |
@kawochen Thanks! |
This PR fix a BUG #10645
@sinhrks would you review my PR?