Function arrow_arith::temporal::num_days_from_monday
source · pub fn num_days_from_monday<T>(
array: &PrimitiveArray<T>
) -> Result<Int32Array, ArrowError>where
T: ArrowTemporalType + ArrowNumericType,
i64: From<T::Native>,
Expand description
Extracts the day of week of a given temporal primitive array as an array of integers.
Monday is encoded as 0
, Tuesday as 1
, etc.
See also num_days_from_sunday
which starts at Sunday.