organize pandas columns code example
Example 1: dataframe, sort by columns
final_df = df.sort_values(by=['2'], ascending=False)
Example 2: sort function in pandas dataframe to sort specific properties
>>> result = df.sort(['A', 'B'], ascending=[1, 0])