W3cubDocs

/Nushell

dfr fill-null for lazyframe

Replaces NULL values with the given expression.

Signature

> dfr fill-null {flags} (fill)

Parameters

  • fill: Expression to use to fill the null values

Input/output types:

input output
any any

Examples

Fills the null values by 0

> [12233] |dfr into-df|dfr shift2|dfr fill-null0
╭───┬───╮
# │ 0 │
├───┼───┤
00
10
21
32
42
╰───┴───╯

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_fill-null.html