polars::prelude

Function replace_date

Source
pub fn replace_date(
    ca: &Logical<DateType, Int32Type>,
    year: &ChunkedArray<Int32Type>,
    month: &ChunkedArray<Int8Type>,
    day: &ChunkedArray<Int8Type>,
) -> Result<Logical<DateType, Int32Type>, PolarsError>
Available on crate features temporal and dtype-date only.
Expand description

Replace specific time component of a DateChunked with a specified value.