W3cubDocs

/Nushell

dfr quantile for lazyframe

Aggregates the columns to the selected quantile.

Signature

> dfr quantile {flags} (quantile)

Parameters

  • quantile: quantile value for quantile operation

Input/output types:

input output
any any

Examples

quantile value from columns in a dataframe

> [[ab]; [62] [14] [41]] |dfr into-df|dfr quantile0.5
╭───┬──────┬──────╮
# │  a   │  b   │
├───┼──────┼──────┤
04.002.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_quantile.html