Skip to content

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

Closed
@iyer

Description

@iyer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexingRelated to indexing on series/frames, not to indexes themselvesMultiIndex

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions