Skip to main content

Module helpers

Module helpers 

Source
Expand description

Explicit helper APIs that may allocate.

These helpers are intentionally separated from the zero-copy bridge path.

Functionsยง

cast_f32_to_f64
Casts PrimitiveArray<f32> to PrimitiveArray<f64>.
cast_f64_to_f32
Casts PrimitiveArray<f64> to PrimitiveArray<f32>.
compact_non_null
Compacts a primitive array by removing null positions.
densify_csr_view
Densifies a CSR view into an Arrow FixedSizeListArray.
fill_nulls_with_mean
Fills nulls in a primitive array with the mean of non-null values.
fill_nulls_with_zero
Fills nulls in a primitive array with the additive identity (0).
reshape_primitive_to_array2
Reinterprets a primitive Arrow array as a 2D ndarray view.
reshape_primitive_to_arrayd
Reinterprets a primitive Arrow array as an ND ndarray view.
to_standard_layout
Converts an owned ndarray array to standard (C-contiguous) layout.