Stacked Histogram

In [16]:
%matplotlib inline
from verticapy.datasets import load_titanic

titanic = load_titanic()
titanic.hist(["survived", "pclass"],
             color = ["#0073E7", "#263133", "#FE5016"],
             hist_type = "stacked")
Out[16]:
<AxesSubplot:xlabel='"survived"', ylabel='Density'>