Function polars_time::prelude::groupby_windows
source · [−]pub fn groupby_windows(
window: Window,
time: &[i64],
include_boundaries: bool,
closed_window: ClosedWindow,
tu: TimeUnit
) -> (GroupsSlice, Vec<i64>, Vec<i64>)
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 asGroupTuples
together 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.