Skip to main content

apply_assert_true

Function apply_assert_true 

Source
pub fn apply_assert_true(
    column: Column,
    err_msg: Option<&str>,
) -> PolarsResult<Option<Column>>
Expand description

Assert that all boolean values are true (PySpark assert_true). PySpark: returns null when input is true; throws when input is false or null. When err_msg is Some, it is used in the error message when assertion fails.