W3cubDocs

/Nushell

dfr std for expression

Creates a std expression for an aggregation of std value from columns in a dataframe

Signature

> dfr std {flags}

Input/output types:

input output
any any

Examples

Std value from columns in a dataframe

> [[ab]; [62] [42] [22]] |dfr into-df|dfr std
╭───┬──────┬──────╮
# │  a   │  b   │
├───┼──────┼──────┤
02.000.00
╰───┴──────┴──────╯

Std aggregation for a group-by

> [[ab]; [one2] [one2] [two1] [two1]]
|dfr into-df
|dfr group-bya
|dfr agg (dfr colb|dfr std)
╭───┬─────┬──────╮
# │  a  │  b   │
├───┼─────┼──────┤
0one0.00
1two0.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_std.html