bigframes.pandas.DataFrame.quantile#

DataFrame.quantile(q:float|Sequence[float]=0.5,*,numeric_only:bool=False)[source]#

Return values at the given quantile over requested axis.

Examples:

>>>importbigframes.pandasasbpd>>>df=bpd.DataFrame(np.array([[1,1],[2,10],[3,100],[4,100]]),...columns=['a','b'])>>>df.quantile(.1)a    1.3b    3.7Name: 0.1, dtype: Float64>>>df.quantile([.1,.5])       a     b0.1  1.3   3.70.5  2.5  55.0[2 rows x 2 columns]
Parameters:
  • q (float orarray-like,default 0.5 (50% quantile)) – Value between 0 <= q <= 1, the quantile(s) to compute.

  • numeric_only (bool,default False) – Include onlyfloat,int orboolean data.

Returns:

Ifq is an array, a DataFrame will be returned where theindex isq, the columns are the columns of self, and thevalues are the quantiles.Ifq is a float, a Series will be returned where theindex is the columns of self and the values are the quantiles.

Return type:

bigframes.pandas.DataFrame orbigframes.pandas.Series

This Page