polars::prelude

Trait ExprEvalExtension

Source
pub trait ExprEvalExtension: Sized + IntoExpr {
    // Provided method
    fn cumulative_eval(
        self,
        expr: Expr,
        min_periods: usize,
        parallel: bool,
    ) -> Expr { ... }
}
Available on crate feature lazy 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§