A trait for cumulative operations.
Get an array with the cumulative count computed at every element.
Optional
Get an array with the cumulative max computes at every element.
reverse the operation
> const s = pl.Series("a", [1, 2, 3])> s.cumMax()shape: (3,)Series: 'b' [i64][ 1 2 3] Copy
> const s = pl.Series("a", [1, 2, 3])> s.cumMax()shape: (3,)Series: 'b' [i64][ 1 2 3]
Get an array with the cumulative min computed at every element.
> const s = pl.Series("a", [1, 2, 3])> s.cumMin()shape: (3,)Series: 'b' [i64][ 1 1 1] Copy
> const s = pl.Series("a", [1, 2, 3])> s.cumMin()shape: (3,)Series: 'b' [i64][ 1 1 1]
Get an array with the cumulative product computed at every element.
> const s = pl.Series("a", [1, 2, 3])> s.cumProd()shape: (3,)Series: 'b' [i64][ 1 2 6] Copy
> const s = pl.Series("a", [1, 2, 3])> s.cumProd()shape: (3,)Series: 'b' [i64][ 1 2 6]
Get an array with the cumulative sum computed at every element.
> const s = pl.Series("a", [1, 2, 3])> s.cumSum()shape: (3,)Series: 'b' [i64][ 1 3 6] Copy
> const s = pl.Series("a", [1, 2, 3])> s.cumSum()shape: (3,)Series: 'b' [i64][ 1 3 6]
A trait for cumulative operations.