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.vCharts
In [4]:
%%vCharts -type bar
SELECT 
    pclass,
    survived,
    COUNT(*)
FROM titanic GROUP BY 1, 2;
Execution: 0.164s
Out[4]: