Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
s = pd.Series([2, 3, 4, 5])
s.quantile(.5)
Out[2]:
3.5

In [3]:
s.quantile([.15, .5, .55])
Out[3]:
0.15    2.45
0.50    3.50
0.55    3.65
dtype: float64