Skip to content
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

MultiIndex __contains__()/in operator throws an IndexError for large multiindices #10645

Closed
iyer opened this issue Jul 21, 2015 · 1 comment · Fixed by #11049
Closed

MultiIndex __contains__()/in operator throws an IndexError for large multiindices #10645

iyer opened this issue Jul 21, 2015 · 1 comment · Fixed by #11049
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Milestone

Comments

@iyer
Copy link

iyer commented Jul 21, 2015

For a small multiindex the in operator works

mi = pd.MultiIndex.from_arrays([range(100),range(100)])
(1000001,0) in mi

For a large multiindex the in operator throws an IndexError

mi = pd.MultiIndex.from_arrays([range(1000000),range(1000000)])
(1000001,0) in mi

@sinhrks sinhrks added Bug Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex labels Jul 22, 2015
scari added a commit to scari/pandas that referenced this issue Jul 27, 2015
@jreback
Copy link
Contributor

jreback commented Jul 28, 2015

xref #10692

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Indexing Related to indexing on series/frames, not to indexes themselves MultiIndex
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants