I have an 2D-array:
A = np.array([[2,3,4],
[2,0,4],
[1,3,7]])
I am searching for the indices per column, which respresent the maximum value of this column without using a for loop.
What I would like to have, is something like:
max_rowIndices_perColumn = np.array([[0,1],[0,2],[2]])
I had the idea to use:
np.where(A== np.amax(A,axis=0))
but as in the second step, I would like to work with every specific column itself, I am not really happy with this idea.
Thank you in advance