polars_arrow::compute::temporal

Function 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.