Issue
How do I find the row or column which contains the array-wide maximum value in a 2d numpy array?
Solution
If you only need one or the other:
np.argmax(np.max(x, axis=1))
for the column, and
np.argmax(np.max(x, axis=0))
for the row.
Answered By - ecatmur
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.