pandas.api.typing.Resampler.quantile
pandas 3.1.1 · Resampling · method
Estimate the value at a specified fraction of the sorted distribution.
Call syntax
pd.api.typing.Resampler.quantile(q=0.5, **kwargs)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
q |
Optional Positional or keyword Default 0.5 |
float or array-like Provide quantiles as fractions between 0 and 1, or a number of quantile bins for qcut. |
**kwargs |
Optional Additional keyword arguments |
Returns
DataFrame or Series