Spec-Zone.ru › Nushell

polars n-unique for dataframe

Counts unique values.

Signature

> polars n-unique {flags}

Input/output types:

input output
polars_expression polars_expression
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Counts unique values

> [1 1 2 2 3 3 4] | polars into-df | polars n-unique
╭───┬──────────────╮
│ # │ count_unique │
├───┼──────────────┤
│ 0 │            4 │
╰───┴──────────────╯

Creates a is n-unique expression from a column

> polars col a | polars n-unique

Copyright © 2019–2026 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/polars_n-unique.html

Spec-Zone.ru

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