pub fn resample(
a: &NdArrowArray,
dim: &str,
times: &NdArrowArray,
freq: Frequency,
op: Reduction,
) -> Result<(NdArrowArray, NdArrowArray)>Expand description
Reduce a per time bin along dim.
times is 1-D with one timestamp (or date) per position along dim, in
any order. Null times are left out. The result replaces dim with one
position per bin, from the bin of the first time to the bin of the last.
A bin without times gives null, like xarray. The second value holds the
bin starts as Timestamp(Microsecond) along dim, with the attributes of
times.