Skip to content

API: Add Series/Index.unique(dropna=True)  #13984

Closed
@sinhrks

Description

@sinhrks

Series/Index.nunique has dropna kw to exclude NaN. Add the same kw to .unique also.

As #13979 changes .unique to always return Index, we can replace Index._get_unique_index(dropna) if this option is added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closing CandidateMay be closeable, needs more eyeballsEnhancementMissing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolate

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions