vDataFrame[].describe¶
In [ ]:
vDataFrame[].describe(method: str = "auto",
max_cardinality: int = 6,
numcol: str = "")
Aggregates the vcolumn using multiple statistical aggregations: min, max, median, unique... depending on the input method.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
method | str | ✓ | The describe method.
|
max_cardinality | int | ✓ | Cardinality threshold to use to determine if the vcolumn will be considered as categorical. |
numcol | str | ✓ | Numerical vcolumn to use when the parameter method is set to 'cat_stats'. |
Returns¶
tablesample : An object containing the result. For more information, see utilities.tablesample.
Example¶
In [39]:
from verticapy.datasets import load_market
market = load_market()
display(market)
In [40]:
market["Price"].describe(method = "numerical")
Out[40]:
In [41]:
# Only the count of the 3 most occurent categories will be displayed
market["Form"].describe(method = "categorical",
max_cardinality = 3)
Out[41]:
In [42]:
# Statistics of 'Price' partitioned by 'Form'
market["Form"].describe(method = "cat_stats",
numcol = "Price")
Out[42]:
See Also¶
| vDataFrame.aggregate | Computes the vDataFrame input aggregations. |
