- polars.cumreduce(f: Callable[[Series, Series], Series], exprs: Union[Sequence[str | Expr], Expr]) Expr #
Cumulatively accumulate over multiple columns horizontally/ row wise with a left fold.
Every cumulative result is added as a separate field in a Struct column.
Function to apply over the accumulator and the value. Fn(acc, value) -> new_value
Expressions to aggregate over. May also be a wildcard expression.