vDataFrame[].value_counts¶
In [ ]:
vDataFrame[].value_counts(k: int = 30)
Returns the k-most occurring elements, how often they occur, and other statistical information.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
k | int | ✓ | Number of most occurent elements. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [96]:
from verticapy.datasets import load_market
market = load_market()
display(market)
In [97]:
market["Name"].value_counts(k = 3)
Out[97]:
See Also¶
| vDataFrame[].describe | Computes the vcolumn descriptive statistics. |
