import numpy as np
a = np.array([[[ 0.25, 0.10 , 0.50 , 0.15],
[ 0.50, 0.60 , 0.70 , 0.30]],
[[ 0.25, 0.50 , 0.20 , 0.70],
[ 0.80, 0.10 , 0.50 , 0.15]]])
I need to find the row and column of the max value in a[i]. If i=0, a[0,1,2] is max, so I need to code a method that gives [1,2] as the output for max in a[0]. Any pointers, please? NB: np.argmax flattens the a[i] 2D array and when axis=0 is used, it gives the index of max in each row of a[0]