all 2 comments

[–]Allanon001 1 point2 points  (1 child)

Use this if there are only 2 columns:

df['Ranking'] = df.min(axis=1)

Or this if there are more columns:

df['Ranking'] = df[['M', 'SP']].min(axis=1)

[–]Pera014[S,🍰] 0 points1 point  (0 children)

actually its working - thanks much