vDataFrame[].agg / aggregate¶
In [ ]:
vDataFrame[].aggregate(func: list)
Aggregates the vcolumn using the input functions.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
func | list | ❌ | List of the different aggregation.
|
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [12]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic["embarked"])
In [13]:
titanic["embarked"].aggregate(func = ["unique", "top1", "top2"])
Out[13]:
See Also¶
| vDataFrame.analytic | Adds a new vcolumn to the vDataFrame by using an advanced analytical function on a specific vcolumn. |
