I am attempting to sort by the maximum value of a column such as:
dfWinners = df_new_out['Margin'].apply[max().sort_values(ascending=False)]
But am unsure of how to use the apply function for multiple methods such as max and sort. I'm sure it's a very simple problem but I cannot for the life of me find it through searching on here. Thank you!
sort_values(ascending=False)should be enough.applywithlambda