sort columns dataframe

df.sort_values(by='col1', ascending=False)

Here is what the above code is Doing:
1. We’re creating a new DataFrame called df_sorted.
2. We’re using the sort_values() method to sort the DataFrame by the values in the col1 column.
3. We’re setting the ascending parameter to False to sort the values in reverse order.
4. We’re printing out the first 5 rows of the df_sorted DataFrame.