W3cubDocs

/Nushell

dfr is-null for dataframe

Creates mask where value is null.

Signature

> dfr is-null {flags}

Input/output types:

input output
any any

Examples

Create mask where values are null

>lets= ([5608] |dfr into-df);
letres= ($s/$s);
$res|dfr is-null
╭───┬─────────╮
# │ is_null │
├───┼─────────┤
0false
1false
2true
3false
╰───┴─────────╯

Creates a is null expression from a column

>dfr cola|dfr is-null

Tips: Dataframe commands were not shipped in the official binaries by default, you have to build it with --features=dataframe flag

Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
https://www.nushell.sh/commands/docs/dfr_is-null.html