dfr var for expression> dfr var {flags} 
| input | output | 
|---|---|
| any | any | 
Var value from columns in a dataframe or aggregates columns to their var value
> [[ab]; [62] [42] [22]] |dfr into-df|dfr var
╭───┬──────┬──────╮
│# │  a   │  b   │
├───┼──────┼──────┤
│0│4.00│0.00│
╰───┴──────┴──────╯
Var aggregation for a group-by
> [[ab]; [one2] [one2] [two1] [two1]]
|dfr into-df
|dfr group-bya
|dfr agg (dfr colb|dfr var)
╭───┬─────┬──────╮
│# │  a  │  b   │
├───┼─────┼──────┤
│0│one│0.00│
│1│two│0.00│
╰───┴─────┴──────╯
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_var.html