dfr cumulative
for dataframe> dfr cumulative {flags} (type)
--reverse, -r
: Reverse cumulative calculationtype
: rolling operationinput | output |
---|---|
any | any |
Cumulative sum for a series
> [12345] |dfr into-df|dfr cumulativesum
╭───┬──────────────────╮
│# │ 0_cumulative_sum │
├───┼──────────────────┤
│0│1│
│1│3│
│2│6│
│3│10│
│4│15│
╰───┴──────────────────╯
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_cumulative.html