Function polars_arrow::compute::boolean::is_null
source · pub fn is_null(input: &dyn Array) -> BooleanArray
Available on crate feature
compute_boolean
only.Expand description
Returns a non-null BooleanArray
with whether each value of the array is null.
§Example
use polars_arrow::array::BooleanArray;
use polars_arrow::compute::boolean::is_null;
let a = BooleanArray::from(vec![Some(false), Some(true), None]);
let a_is_null = is_null(&a);
assert_eq!(a_is_null, BooleanArray::from_slice(vec![false, false, true]));