human
How to sort a dataFrame in python pandas by two or more columns?
assistant
Here is some code to sort dataframe `df` based on column 'a' in ascending and column 'b' in descending

df.sort_values(['a', 'b'], ascending=[True, False])

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