human
Fastest way to sort each row in a pandas dataframe
assistant
Here is some code to sort each row in a pandas dataframe `df` in descending order

df.sort(axis=1, ascending=False)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.