pandas.Index.unique

Index.unique(level=None)[source]

Return unique values in the index.

Unique values are returned in order of appearance, this does NOT sort.

Parameters
levelint or str, optional, default None

Only return values from specified level (for MultiIndex).

Returns
Index without duplicates

See also

unique

Numpy array of unique values in that column.

Series.unique

Return unique values of Series object.