Numpy Get Index dari N nilai terbesar
numbers = np.array([1, 3, 2, 4])
n = 2
indices = (-numbers).argsort()[:n]
Courageous Cow
numbers = np.array([1, 3, 2, 4])
n = 2
indices = (-numbers).argsort()[:n]