datatypes::compute

Function week

pub fn week<T>(
    array: &PrimitiveArray<T>,
) -> Result<PrimitiveArray<Int32Type>, ArrowError>
where T: ArrowTemporalType + ArrowNumericType, i64: From<<T as ArrowPrimitiveType>::Native>,
👎Deprecated since 51.0.0: Use date_part instead
Expand description

Extracts the week of a given temporal primitive array as an array of integers