vDataFrame[].nunique¶
In [ ]:
vDataFrame[].nunique(approx: bool = True)
Aggregates the vColumn by cardinality.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
approx | bool | ✓ | If set to True, the approximate cardinality is returned. Setting this parameter to false will give exact results, but decrease performance. |
In [54]:
from verticapy.datasets import load_market
market = load_market()
display(market)
In [55]:
market["Form"].nunique(approx = True)
Out[55]:
In [97]:
market["Form"].nunique(approx = False)
Out[97]:
See Also¶
| vDataFrame.aggregate | Computes the vDataFrame input aggregations. |
