find the column name which has the maximum value for each row,df.idxmax(axis=1)