Skip to main content

apply_string_to_boolean

Function apply_string_to_boolean 

Source
pub fn apply_string_to_boolean(
    column: Column,
    strict: bool,
) -> PolarsResult<Option<Column>>
Expand description

Apply string-to-boolean cast. Handles string columns; passes through boolean; numeric types (0/0.0 -> false, non-zero -> true for PySpark parity #399); null for others (try_cast) or error (cast).