pandas.Index.unique

Index.unique(self, level=None)[source]

Return unique values in the index. Uniques 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).

New in version 0.23.0.

Returns
Index without duplicates