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.
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.