Answers for "how to sort dataframe multi columns with multi ascending values"

3

how to sort dataframe multi columns with multi ascending values

df = df.sort_values(["b", "c"], ascending = (False, True))
Posted by: Guest on November-25-2020

Python Answers by Framework

Browse Popular Code Answers by Language