Published
- 1 min read
sort a series pandas
The solution for this is noted below
sort a series pandas
Solution
>>> s.sort_values(ascending=False, inplace=True)
>>> s
3 10.0
4 5.0
2 3.0
1 1.0
0 NaN
dtype: float64
Try other methods by searching on the site. That is if this doesn’t work