Skip to content

pandas.unique needs to be more careful on index types #1759

@wesm

Description

@wesm

e.g.

In [2]: mindex = MultiIndex.from_arrays([np.arange(5).repeat(5), np.tile(np.arange(5), 5)])

In [3]: pd.unique(mindex)
Out[3]: array([], dtype=object)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions