I have a numpy array like the following
values = [0.1, 0.9, 0.8, 0.65, 0.2, 0.7]
I need to know both the value and the index of the top value and I get that with
int(np.argmax(values))
max(values)
But now I also need to know the second-highest and third-highest values from the array and preserve the index accordingly. How can I modify my code to get those values?