pandas.Series.is_unique#

property Series.is_unique[source]#

Return True if values in the object are unique.

Returns:
bool

See also

Series.unique

Return unique values of Series object.

Series.drop_duplicates

Return Series with duplicate values removed.

Series.duplicated

Indicate duplicate Series values.

Examples

>>> s = pd.Series([1, 2, 3])
>>> s.is_unique
True
>>> s = pd.Series([1, 2, 3, 1])
>>> s.is_unique
False