elemen maksimum di baris dataframe

max_elements = df.max(axis = 1) #axis = 0, default, max of each column
print(max_elements)
Chunxiao Wang