polars.Expr.cumsum

Expr.cumsum(reverse: bool = False) polars.internals.expr.Expr

Get an array with the cumulative sum computed at every element.

Parameters
reverse

Reverse the operation.

Notes

Dtypes in {Int8, UInt8, Int16, UInt16} are cast to Int64 before summing to prevent overflow issues.