Skip to content Skip to sidebar Skip to footer

How To Find Max Value In A Numpy Array Column?

I can find quite a few permutations of this question, but not this (rather simple) one: how do I find the maximum value of a specific column of a numpy array (in the most pythonic

Solution 1:

Just unpack the list:

In [273]: xmax, ymax = a.max(axis=0)

In [274]: print xmax, ymax
#10 6

Post a Comment for "How To Find Max Value In A Numpy Array Column?"