I have a NumPy record array of floats:
import numpy as np
ar = np.array([(238.03, 238.0, 237.0),
(238.02, 238.0, 237.01),
(238.05, 238.01, 237.0)],
dtype=[('A', 'f'), ('B', 'f'), ('C', 'f')])
How can I determine min/max from this record array? My usual attempt of ar.min()
fails with:
TypeError: cannot perform reduce with flexible type
I'm not sure how to flatten the values out into a simpler NumPy array.