get max value in dataframe code example
Example 1: pandas get index of max value in column
#use this to get the index of the max value of a column
max_index = column.idxmax()
Example 2: find min and max from dataframe column
max_value = column.max()
Example 3: max of two columns pandas
df["C"] = df[["A", "B"]].max(axis=1)