python list max index code example
Example 1: python index of max value in list
a = [1, 7, 3, 12, 5]
min_index = a.index(min(a))
max_index = a.index(max(a))
Example 2: python how to return max num index
import numpy as np
x=[1,2,3,4,5]
max_index=np.argmax(x)
Example 3: python return list max inde
a.index(max(a))
Example 4: index of max value of sequence python
a.index(max(a))
a.index(min(a))
mean.max()
max_index = (np.argmax(mean, axis = 0) + 1)
Example 5: max in a list python
li=[0,70,7,89]
max(li)