mirror of
https://github.com/nushell/nushell.git
synced 2024-11-23 17:03:45 +01:00
c0a1d18e3d
* feat: update #4455, regenerate commands' docs * chore: update make_docs script
490 B
490 B
title | layout | version |
---|---|---|
dfr pivot | command | 0.59.0 |
Performs a pivot operation on a groupby object
Signature
> dfr pivot (pivot_column) (value_column) (operation)
Parameters
pivot_column
: pivot column to perform pivotvalue_column
: value column to perform pivotoperation
: aggregate operation
Examples
Pivot a dataframe on b and aggregation on col c
> [[a b c]; [one x 1] [two y 2]] | dfr to-df | dfr group-by a | dfr pivot b c sum