python print index of highest element in array code example
Example 1: index to min python
import numpy as np
index_min = np.argmin(values)
Example 2: index of maximum value in list python
[i for i, x in enumerate(l) if x == max(l)]
import numpy as np
index_min = np.argmin(values)
[i for i, x in enumerate(l) if x == max(l)]