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:
- Returns:
If
qis an array, a DataFrame will be returned where theindex isq, the columns are the columns of self, and thevalues are the quantiles.Ifqis a float, a Series will be returned where theindex is the columns of self and the values are the quantiles.- Return type:
On this page