pub fn cum_sum(s: &Series, reverse: bool) -> Result<Series, PolarsError>
Available on crate feature
polars-ops
only.Expand description
Get an array with the cumulative sum computed at every element
If the DataType
is one of {Int8, UInt8, Int16, UInt16}
the Series
is
first cast to Int64
to prevent overflow issues.