Series.quantile()
pandas.Series.quantile
-
Series.quantile(q=0.5, interpolation='linear')
-
Return value at the given quantile, a la numpy.percentile.
Parameters: q : float or array-like, default 0.5 (50% quantile)
0 <= q <= 1, the quantile(s) to compute
interpolation : {‘linear’, ‘lower’, ‘higher’, ‘midpoint’, ‘nearest’}
New in version 0.18.0.
This optional parameter specifies the interpolation method to use, when the desired quantile lies between two data points
i
andj
:- linear:
i
- linear: