ChunkRollApply

Trait ChunkRollApply 

Source
pub trait ChunkRollApply: AsRefDataType {
    // Required method
    fn rolling_map(
        &self,
        f: &dyn Fn(&Series) -> PolarsResult<Series>,
        options: RollingOptionsFixedWindow,
    ) -> PolarsResult<Series>
       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

Required Methods§

Source

fn rolling_map( &self, f: &dyn Fn(&Series) -> PolarsResult<Series>, options: RollingOptionsFixedWindow, ) -> PolarsResult<Series>
where Self: Sized,

Implementors§