polars.Series.is_first_distinct# Series.is_first_distinct() → Series[source]# Return a boolean mask indicating the first occurrence of each distinct value. Returns: SeriesSeries of data type Boolean. Examples >>> s = pl.Series([1, 1, 2, 3, 2]) >>> s.is_first_distinct() shape: (5,) Series: '' [bool] [ true false true true false ]