Skip to main content

rolling

Function rolling 

Source
pub fn rolling(
    a: &NdArrowArray,
    dim: &str,
    window: usize,
    op: RollingOp,
    min_periods: Option<usize>,
    center: bool,
) -> Result<NdArrowArray>
Expand description

Apply op over a moving window of window elements along dim.

Like xarray, the window ends at each element, or is centered on it when center is true. A window with fewer than min_periods non-null values gives null (min_periods of None means window). The result has the shape of a and type Float64 (Int64 for Count).