Spec-Zone.ru › Polars

polars.Series.n_unique

Series.n_unique() → int

Count the number of unique values in this Series.

null is considered to be a unique value for the purposes of this operation.

Examples

>>> s = pl.Series("a", [1, 2, 2, None])
>>> s.n_unique()
3

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.n_unique.html

Spec-Zone.ru

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