Get maximum subset in multidimensional array [closed]

You can sum along columns and then find the index with the maximum value with argmax:

a[np.argmax(a.sum(axis=1))]

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top