polars count-null

For dataframe.

Counts null values.

warning This command requires a plugin The polars count-null command resides in the polars plugin. To use this command, you must install and register nu_plugin_polars. See the Plugins chapter in the book for more information.

Command Type

plugin

Signature

> polars count-null {flags}

Input/output types:

input output
polars_dataframe polars_dataframe
polars_lazyframe polars_lazyframe

Examples

Counts null values

> let s = ([1 1 0 0 3 3 4] | polars into-df);
    ($s / $s) | polars count-null
╭───┬────────────╮
│ # │ count_null │
├───┼────────────┤
│ 0 │          2 │
╰───┴────────────╯

Ported from nushell/nushell.github.io. Copyright (c) 2021 Nushell Project. MIT License.