so my questions is pretty straight forward. I have a 3-d array and would like to get the maximal value alone the first two axes.
import numpy as np
array = np.zeros((3,3,2))
array[1][1][0] = 1
array[1][1][1] = 2
How do I now check along [1][1] which value has the max value? I would suspect to use np.argmax() but I googled for ages and could not find a working solution. Thank you in advance!
To be clear, I want my return to be 2, just a single integer.