Function polars::prelude::groupby_windows
source · [−]pub fn groupby_windows(
window: Window,
time: &[i64],
include_boundaries: bool,
closed_window: ClosedWindow,
tu: TimeUnit
) -> (Vec<[u32; 2], Global>, Vec<i64, Global>, Vec<i64, Global>)Expand description
Based on the given Window, which has an
- every
- period
- offset
window boundaries are created. And every window boundary we search for the values
that fit that window by the given
ClosedWindow. The groups are return asGroupTuplestogether with the lower bound and upper bound timestamps. These timestamps indicate the start (lower) and end (upper) of the window of that group.
If include_boundaries is false those lower and upper vectors will be empty.