Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sort a series pandas

>>> s.sort_values(ascending=False, inplace=True)
>>> s
3    10.0
4     5.0
2     3.0
1     1.0
0     NaN
dtype: float64
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #sort #series #pandas
ADD COMMENT
Topic
Name
9+7 =