Expand description
Arrow to ndarray conversions (zero-copy views).
This module provides zero-copy conversions from Arrow arrays to ndarray views. All conversions borrow the Arrow buffer and produce ndarray views — no allocation occurs.
§Null handling
Three tiers of null handling are provided:
AsNdarray::as_ndarray— validates no nulls, returnsResult. O(1).AsNdarray::as_ndarray_unchecked— caller guarantees no nulls. Zero cost.AsNdarray::as_ndarray_masked— returns view + optional validity bitmap. Zero allocation.
Traits§
- AsNdarray
- Zero-copy conversion from an Arrow array to an ndarray view.
Functions§
- fixed_
size_ list_ as_ array2 - Zero-copy conversion from a
FixedSizeListArrayto anArrayView2. - fixed_
size_ list_ as_ array2_ masked - Zero-copy conversion from a
FixedSizeListArrayto anArrayView2with a validity bitmap. - fixed_
size_ ⚠list_ as_ array2_ unchecked - Zero-copy conversion from a
FixedSizeListArrayto anArrayView2, without null checks.