Spec-Zone.ru › Nushell

polars count for dataframe

Returns the number of non-null values in the column.

Signature

> polars count {flags}

Input/output types:

input output
polars_expression polars_expression
polars_selector polars_expression

Examples

Count the number of non-null values in a column

> [[a]; ["foo"] ["bar"] [null]] | polars into-df
                    | polars select (polars col a | polars count)
                    | polars collect
╭───┬───╮
│ # │ a │
├───┼───┤
│ 0 │ 2 │
╰───┴───╯

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

Spec-Zone.ru

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