#following is example of sorting by the column "2" in descending order final_df = df.sort_values(by=['2'], ascending=False)