bigframes.pandas.Series.quantile#
- Series.quantile(q: float | Sequence[float] = 0.5) Series | float[source]#
Return value at the given quantile.
Examples:
>>> import bigframes.pandas as bpd >>> s = bpd.Series([1, 2, 3, 4]) >>> s.quantile(.5) np.float64(2.5)
>>> s.quantile([.25, .5, .75]) 0.25 1.75 0.5 2.5 0.75 3.25 dtype: Float64
- Parameters:
q (Union[float, Sequence[float], default 0.5 (50% quantile)) – The quantile(s) to compute, which can lie in range: 0 <= q <= 1.
- Returns:
If
qis an array, a Series will be returned where the index isqand the values are the quantiles, otherwise a float will be returned.- Return type:
Union[float, bigframes.pandas.Series]