sort pandas dataframe by specific column

Solutions on MaxInterview for sort pandas dataframe by specific column by the best coders in the world

showing results for - "sort pandas dataframe by specific column"
Paola
25 Aug 2019
1In [18]:
2df.sort_values('2')
3
4Out[18]:
5        0          1     2
64    85.6    January   1.0
73    95.5   February   2.0
87   104.8      March   3.0
90   354.7      April   4.0
108   283.5        May   5.0
116   238.7       June   6.0
125   152.0       July   7.0
131    55.4     August   8.0
1411  212.7  September   9.0
1510  249.6    October  10.0
169   278.8   November  11.0
172   176.5   December  12.0
18