polars_arrow::compute::temporal

Function year

Source
pub fn year(array: &dyn Array) -> PolarsResult<PrimitiveArray<i32>>
Available on crate feature compute_temporal only.
Expand description

Extracts the years of a temporal array as PrimitiveArray<i32>.