Панды Получите индекс значения максимума в столбце
#use this to get the index of the max value of a column
max_index = column.idxmax()
Comfortable Cardinal
#use this to get the index of the max value of a column
max_index = column.idxmax()
max_value_column = df["column_name"].max()
max_value = column.max()
# applying idxmax() function.
df.idxmax(axis = 0)