Skip to main content

coerce_string_to_datetime

Function coerce_string_to_datetime 

Source
pub fn coerce_string_to_datetime(
    infer: &mut DatetimeInfer<Int64Type>,
    ca: &ChunkedArray<StringType>,
    tz: Option<&TimeZone>,
    ambiguous: &ChunkedArray<StringType>,
) -> Result<Logical<DatetimeType, Int64Type>, PolarsError>
Available on crate features temporal and dtype-datetime only.
Expand description

Apply a pre-built DatetimeInfer<Int64Type> to a StringChunked, applying tz handling, returning a DatetimeChunked. Mirrors the post-coerce_string logic in to_datetime.