vDataFrame.heatmap¶
In [ ]:
vDataFrame.heatmap(columns: list,
method: str = "count",
of: str = "",
h: tuple = (None, None),
ax=None,
**style_kwds,)
Draws the Heatmap of the two input vcolumns.
Parameters¶
| Name | Type | Optional | Description |
|---|---|---|---|
| columns | list | ❌ | List of the vcolumns names. The list must have one or two elements. |
method | str | ✓ | The method to use to aggregate the data.
|
of | str | ✓ | The vcolumn to use to compute the aggregation. |
h | tuple | ✓ | Interval width of the vcolumns 1 and 2 bars. Optimized h will be computed if the parameter is empty or invalid. |
ax | Matplotlib axes object | ✓ | The axes to plot on. |
**style_kwds | any | ✓ | Any optional parameter to pass to the Matplotlib functions. |
In [5]:
from verticapy.datasets import load_iris
iris = load_iris()
display(iris)
In [13]:
iris.heatmap(["PetalLengthCm", "SepalLengthCm"])
In [8]:
iris.heatmap(["PetalLengthCm", "SepalLengthCm"],
method="avg",
of="PetalWidthCm")
See Also¶
| vDataFrame.hexbin | Draws the Hexbin Plot of 2 vcolumns based on an aggregation. |
| vDataFrame.pivot | Returns the Pivot of the vDataFrame using the input aggregation. |
