vDataFrame[].topk¶
In [ ]:
vDataFrame[].topk(k: int = -1,
dropna: bool = True)
Returns the K most occurent elements and their respective percent of the distribution.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
k | int | ✓ | Number of most occurent elements. |
dropna | bool | ✓ | If set to True, NULL values will not be considered during the computation. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [94]:
from verticapy.datasets import load_market
market = load_market()
display(market)
In [95]:
market["Name"].topk(k = 3)
Out[95]:
See Also¶
| vDataFrame[].describe | Computes the vcolumn descriptive statistics. |
