Responsive Pyramid Bar Chart

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

titanic = load_titanic()
titanic.hchart(x = "survived", y = "pclass", kind = "negative_bar",)
Out[27]:
In [3]:
%load_ext verticapy.vCharts
In [26]:
%%vCharts -type negative_bar
SELECT 
    survived,
    pclass,
    COUNT(*)
FROM titanic GROUP BY 1, 2;
Execution: 0.192s
Out[26]: