vDataFrame.count_percent¶
In [ ]:
vDataFrame.count(columns: list = [],
sort_result: bool = True,
desc: bool = True,
**agg_kwds)
Aggregates the vDataFrame, totaling number and percentage of non-missing values.
Parameters¶
Name | Type | Optional | Description |
---|---|---|---|
columns | list | ✓ | List of the vcolumns names. If empty, all the vcolumns will be used. |
sort_result | bool | ✓ | If set to True, the result will be sorted. |
desc | bool | ✓ | If set to True and 'sort_result' is set to True, the result will be sorted desc. |
**agg_kwds | any | ✓ | Any optional parameter to pass to the Aggregate function. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [1]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic)
In [2]:
titanic.count_percent(desc = False)
Out[2]:
See Also¶
vDataFrame.aggregate | Computes the vDataFrame input aggregations. |