pandas.core.resample.Resampler.quantile#

Resampler.quantile(q=0.5, **kwargs)[源代码]#

返回给定分位数的值。

参数
q浮点或类似数组,默认为0.5(50%分位数)
退货
DataFrame或系列

每个组内的值的分位数。

参见

Series.quantile

返回一个序列,其中索引是Q,值是分位数。

DataFrame.quantile

返回一个DataFrame,其中列是self的列,值是分位数。

DataFrameGroupBy.quantile

返回一个DataFrame,其中的coulmn是按列分组的,值是它的分位数。