pub fn map_counts(
input: ArrayRef,
target: &DType,
ctx: &mut ExecutionCtx,
convert: impl Fn(i64) -> VortexResult<i64>,
) -> VortexResult<ArrayRef>Expand description
Apply convert to each valid count of a temporal array, and return an array of target.
target must be a temporal dtype. A null row stays null, and convert never sees its
payload. The conversion fails on the first count that convert rejects or that does not fit in
the storage width of target.