pub fn from_array_like_f32(obj: &Bound<'_, PyAny>) -> PyResult<Vec<f32>>Expand description
Extract f32 values from any Python array-like object.
Attempts the following strategies in order:
.valuesattribute (pandas Series / masked array)..__array__()method (NumPy array protocol).- Direct iteration via
__len__+__getitem__.
ยงErrors
Returns a PyErr if none of the strategies succeeds or if an element
cannot be converted to f32.