polars.Series.arg_true
-
Получить значения индексов, для которых булевы значения в Series равны True.
- Возвращает:
-
- Series
-
Series типа данных
UInt32.
Примеры
>>> s = pl.Series("a", [1, 2, 3]) >>> (s == 2).arg_true() shape: (1,) Series: 'a' [u32] [ 1 ]
Series.arg_true() → 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_true.html