SyntaxFix
Write A Post
Hire A Developer
Questions
mx.iloc[0].idxmax()
This one line of code will give you how to find the maximum value from a row in dataframe, here mx is the dataframe and iloc[0] indicates the 0th index.
mx
iloc[0]