1#use this to get the index of the max value of a column
2max_index = column.idxmax()
1df = {'a': 3, 'b':4, 'c':5}
2df.max() #max() gives you the maximum value in the series.
3#Output
45
5
6df.idxmax() #idx() gives you the index of the maximum values.
7#Output
8c
9
10#NB: The same applies to min() and idxmin().
11
12