Is there any kind of helper to find the min, max (and ideally standard deviation) of each dimension in a multidimensional array within numpy? I'm looking for something like the summary() function in R.
My data is essentially a huge 2D array (list of lists), in which the sublists contain n dimensional values. E.g. currently I have data with 3 dimensional attributes x,y,z:
a = np.random.rand(100,3)
For each of those dimensions (x,y,z) I want to know the min, max, mean, and std.
I know one can loop through the axes and measure these values, e.g.:
for i in range(a.shape[-1]):
vals = a[:,i]
print(np.min(vals), np.max(vals), np.std(vals))
I find myself writing the code to do that almost every time I have a new dataset. Any way to expedite this operation would be hugely helpful!