def unique(self):
        from pandas.core.nanops import unique1d
        values = self.values
        if hasattr(values, 'unique'):
            return values.unique()

        return unique1d(values)
Return array of unique values in the object. Significantly faster than
dataset/ETHPy150Open pydata/pandas/pandas/core/base.py/IndexOpsMixin.unique