>>> df.idxmax(axis=1) 0 Communications 1 Business 2 Communications 3 Communications 4 Business dtype: object
max_elements = df.max(axis = 1) #axis = 0, default, max of each column print(max_elements)
df.idxmin()