mirror of
https://github.com/nushell/nushell.git
synced 2024-11-30 04:14:17 +01:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
872 B
872 B
title | layout | version |
---|---|---|
dfr aggregate | command | 0.59.0 |
Performs an aggregation operation on a dataframe and groupby object
Signature
> dfr aggregate (operation_name) --quantile --explicit
Parameters
operation_name
: Dataframes: mean, sum, min, max, quantile, median, var, std GroupBy: mean, sum, min, max, first, last, nunique, quantile, median, var, std, count--quantile {number}
: quantile value for quantile operation--explicit
: returns explicit names for groupby aggregations
Examples
Aggregate sum by grouping by column a and summing on col b
> [[a b]; [one 1] [one 2]] | dfr to-df | dfr group-by a | dfr aggregate sum
Aggregate sum in dataframe columns
> [[a b]; [4 1] [5 2]] | dfr to-df | dfr aggregate sum
Aggregate sum in series
> [4 1 5 6] | dfr to-df | dfr aggregate sum