Skip to content

BUG: Index formed with list of tuples return wrong output in eq ops #34180

Closed
@charlesdong1991

Description

@charlesdong1991

xref #34137

Currently

>>> pd.Index([('a', 'b'), ('b', 'c'), ('c', 'a')]) == ('c', 'a')
>>> array([False, False, False])

The issue is such case is treated as a MultiIndex other than plain Index.

Expected:

>>> pd.Index([('a', 'b'), ('b', 'c'), ('c', 'a')]) == ('c', 'a')
>>> array([False, False, True])

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugIndexRelated to the Index class or subclassesMultiIndex

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions