# applying idxmax() function. df.idxmax(axis = 0)
my_max_ind = data['x1'].idxmax() # Index of maximum in column print(my_max_ind) # 4