polars_core::export::cast

Function boolean_to_binaryview

pub fn boolean_to_binaryview(
    from: &BooleanArray,
) -> BinaryViewArrayGeneric<[u8]>
Expand description

Casts the [BooleanArray] to a [BinaryArray], casting trues to "1" and falses to "0"