sort_values
#Sorting the dataframe based on values of one column df1.sort_values(by='col1',ascending=True) #based on two columns df.sort_values(['a', 'b'], ascending=[True, False])