Skip to content

pd.Series.quantile

pandas.Series.quantile(q=0.5, interpolation='linear')

Supported Arguments

argument datatypes
q
  • Float in [0.0, 1.0]
  • Iterable of floats in [0.0, 1.0]
  • </ul

Example Usage

>>> @bodo.jit
... def f(S):
...     return S.quantile([0.25, 0.5, 0.75])
>>> S = pd.Series(np.arange(100)) % 7
>>> f(S)
0.25    1.0
0.50    3.0
0.75    5.0
dtype: float64