pub fn reduce_exprs<F, E: AsRef<[Expr]>>(f: F, exprs: E) -> Expr
where F: Fn(Series, Series) -> PolarsResult<Option<Series>> + Send + Sync + Clone + 'static,
Expand description

Analogous to Iterator::reduce.

An accumulator is initialized to the series given by the first expression in exprs, and then each subsequent value of the accumulator is computed from f(acc, next_expr_series). If exprs is empty, an error is returned when collect is called.