I have the following data frame:
df = pandas.DataFrame([{\'c1\':3,\'c2\':10},{\'c1\':2, \'c2\':30},{\'c1\':1,\'c2\':20},{\'c1\':2,\'c2\':15},{\'c1\':2,\'c2\'
Use of sort can result in warning message. See github discussion. So you might wanna use sort_values, docs here
sort
sort_values
Then your code can look like this:
df = df.sort_values(by=['c1','c2'], ascending=[False,True])