Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas series quantile

s = pd.Series([1, 2, 3, 4])
>>> s.quantile(.5)
2.5
>>> s.quantile([.25, .5, .75])
0.25    1.75
0.50    2.50
0.75    3.25
dtype: float64
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #pandas #series #quantile
ADD COMMENT
Topic
Name
9+4 =