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