1>>> df.sort_values(by=['col1'])
2 col1 col2 col3
30 A 2 0
41 A 1 1
52 B 9 9
65 C 4 3
74 D 7 2
83 NaN 8 4
9
1sorted = df.sort_values('column-to-sort-on', ascending=False)
2#or
3df.sort_values('name', inplace=True)