vDataFrame[].quantile¶
In [ ]:
vDataFrame[].quantile(x: float,
approx: bool = True)
Aggregates the vcolumn using an input 'quantile'.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
x | float | ❌ | Number representing the quantile. It must be a float between 0 and 1. For example 0.25 will return Q1. |
approx | bool | ✓ | If set to True, the approximate quantile is returned. By setting this parameter to False, the function's performance can drastically decrease. |
In [6]:
from verticapy.datasets import load_market
market = load_market()
display(market)
In [7]:
# Approx quantile
market["Price"].quantile(x = 0.5, approx=False)
Out[7]:
In [8]:
# Exact quantile
market["Price"].quantile(x = 0.5, approx=False)
Out[8]:
See Also¶
vDataFrame.aggregate | Computes the vDataFrame input aggregations. |