polars_lazy::dsl

Trait ExprEvalExtension

Source
pub trait ExprEvalExtension: IntoExpr + Sized {
    // Provided method
    fn cumulative_eval(
        self,
        expr: Expr,
        min_periods: usize,
        parallel: bool,
    ) -> Expr { ... }
}
Available on crate features cumulative_eval or list_eval only.

Provided Methods§

Source

fn cumulative_eval(self, expr: Expr, min_periods: usize, parallel: bool) -> Expr

Run an expression over a sliding window that increases 1 slot every iteration.

§Warning

This can be really slow as it can have O(n^2) complexity. Don’t use this for operations that visit all elements.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§