polars_arrow::array

Function new_null_array

Source
pub fn new_null_array(dtype: ArrowDataType, length: usize) -> Box<dyn Array>
Expand description

Creates a new Array of ArrowDataType dtype and length.

The array is guaranteed to have Array::null_count equal to Array::len for all types except Union, which does not have a validity.