vDataFrame.pie¶
In [ ]:
vDataFrame.pie(columns: list,
max_cardinality: (int, tuple) = (6, 6),
h: (float, tuple) = (None, None),
ax=None,
**style_kwds,)
Draws the nested density pie chart of the input vcolumns.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
columns | list | ❌ | List of the vcolumns. |
max_cardinality | int / tuple | ✓ | Maximum number of the vcolumn distinct elements to be used as categorical (no h will be picked or computed). If of type tuple, it must represent each column's 'max_cardinality'. |
h | float / tuple | ✓ | Interval width of the bar. If empty, an optimized h will be computed. If of type tuple, it must represent each column 'h'. |
ax | Matplotlib axes object | ✓ | The axes to plot on. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
In [7]:
from verticapy.datasets import load_titanic
titanic = load_titanic()
display(titanic)
In [15]:
titanic.pie(["survived", "pclass", "embarked"])
Out[15]:
