pub fn try_cast(column: &Column, type_name: &str) -> Result<Column, String>Expand description
Cast column to the given type, returning null on invalid conversion (PySpark try_cast). String-to-boolean uses custom parsing (“true”/“false”/“1”/“0”) since Polars does not support Utf8->Boolean. String-to-date accepts date and datetime strings; invalid strings become null.