NumPy proposes a way to get the index of the maximum value of an array via np.argmax.
np.argmax
I would like a similar thing, but returning the indexes of the
Simpler yet:
idx = (-arr).argsort()[:n]
where n is the number of maximum values.