Pandy otrzymują indeks maksymalnej wartości w kolumnie
#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()
df = {'a': 3, 'b':4, 'c':5}
df.max() #max() gives you the maximum value in the series.
#Output
5
df.idxmax() #idx() gives you the index of the maximum values.
#Output
c
#NB: The same applies to min() and idxmin().
max_value_column = df["column_name"].max()
# applying idxmax() function.
df.idxmax(axis = 0)