W3cubDocs

/Nushell

dfr summary for dataframe

For a dataframe, produces descriptive statistics (summary statistics) for its numeric columns.

Signature

> dfr summary {flags}

Flags

  • --quantiles, -q {table}: provide optional quantiles

Input/output types:

input output
any any

Examples

list dataframe descriptives

> [[ab]; [11] [11]] |dfr into-df|dfr summary
╭───┬────────────┬─────────┬─────────╮
# │ descriptor │ a (i64) │ b (i64) │
├───┼────────────┼─────────┼─────────┤
0count2.002.00
1sum2.002.00
2mean1.001.00
3median1.001.00
4std0.000.00
5min1.001.00
625%1.001.00
750%1.001.00
875%1.001.00
9max1.001.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_summary.html