Responsive Bar Chart Multiple Variables¶
In [1]:
%matplotlib inline
from verticapy.datasets import load_titanic
titanic = load_titanic()
titanic.hchart(x = "pclass",
y = "survived",
z = "COUNT(*)",
kind = "bar")
Out[1]:
In [3]:
%load_ext verticapy.hchart
In [4]:
%%hchart -type bar
SELECT
pclass,
survived,
COUNT(*)
FROM titanic GROUP BY 1, 2;
Out[4]: