dfr set for dataframe> dfr set {flags} (value)
--mask, -m {any}: mask indicating insertionsvalue: value to be inserted in series| input | output | 
|---|---|
| any | any | 
Shifts the values by a given period
>lets= ([12233] |dfr into-df|dfr shift2);
letmask= ($s|dfr is-null);
$s|dfr set0--mask$mask
╭───┬───╮
│# │ 0 │
├───┼───┤
│0│0│
│1│0│
│2│1│
│3│2│
│4│2│
╰───┴───╯
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_set.html