polars.Series.is_unique

Series.is_unique() polars.internals.series.Series

Get mask of all unique values.

Returns
Boolean Series

Examples

>>> s = pl.Series("a", [1, 2, 2, 3])
>>> s.is_unique()
shape: (4,)
Series: 'a' [bool]
[
        true
        false
        false
        true
]