Spec-Zone.ru › Polars

polars.Series.arg_true

Series.arg_true() → Series

Получить значения индексов, для которых булевы значения в Series равны True.

Возвращает:
Series

Series типа данных UInt32.

Примеры

>>> s = pl.Series("a", [1, 2, 3])
>>> (s == 2).arg_true()
shape: (1,)
Series: 'a' [u32]
[
    1
]

© 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API