sort data from more than two columns code example Example: pandas sort values by multiple columns df = df.sort_values(["b", "c"], ascending = (False, True))