Function polars_arrow::compute::temporal::weekday

source ·
pub fn weekday(array: &dyn Array) -> PolarsResult<PrimitiveArray<i8>>
Available on crate feature compute_temporal only.
Expand description

Extracts weekday of a temporal array as PrimitiveArray<i8>. Monday is 1, Tuesday is 2, …, Sunday is 7. Use can_weekday to check if this operation is supported for the target ArrowDataType