polars::chunked_array::ops

Trait ChunkRollApply

Source
pub trait ChunkRollApply: AsRefDataType {
    // Provided method
    fn rolling_map(
        &self,
        _f: &dyn Fn(&Series) -> Series,
        _options: RollingOptionsFixedWindow,
    ) -> Result<Series, PolarsError>
       where Self: Sized { ... }
}
Available on crate feature rolling_window only.
Expand description

This differs from ChunkWindowCustom and ChunkWindow by not using a fold aggregator, but reusing a Series wrapper and calling Series aggregators. This likely is a bit slower than ChunkWindow

Provided Methods§

Source

fn rolling_map( &self, _f: &dyn Fn(&Series) -> Series, _options: RollingOptionsFixedWindow, ) -> Result<Series, PolarsError>
where Self: Sized,

Implementors§