polars.Series.arg_unique
-
Получить индексы уникальных значений в виде Series.
- Возвращает:
-
- Series
Примеры
>>> s = pl.Series("a", [1, 2, 2, 3]) >>> s.arg_unique() shape: (3,) Series: 'a' [u32] [ 0 1 3 ]
Series.arg_unique() → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.arg_unique.html