Skip to main content

extract_ndarray_shape

Function extract_ndarray_shape 

Source
pub fn extract_ndarray_shape(schema: &Schema) -> ArrowResult<Vec<usize>>
Expand description

Extract ndarray shape from an Arrow schema’s metadata

This is the inverse of ndarray_shape_schema.

§Returns

The shape as a vector of dimension sizes, or an error if the metadata is missing or malformed.