Expand description
ndarray to Arrow conversions (zero-copy ownership transfer).
This module provides conversions from owned ndarray arrays to Arrow arrays. Ownership of the underlying buffer is transferred — no allocation occurs when the ndarray is in standard (C-contiguous) layout.
When the layout is non-standard, a contiguous copy is made automatically before transferring ownership.
§Allocation contract
- Standard layout: zero allocation (ownership transfer only).
- Non-standard layout: one allocation (
as_standard_layout().into_owned()), then transfer.
Traits§
- Into
Arrow - Zero-copy ownership transfer from an ndarray array to an Arrow array.