Igor Alshannikov / Nov 02 2022
Lets-plot Quickstart
pip install lets-plot4.4s
import numpy as npfrom lets_plot import *LetsPlot.setup_html()0.5s
np.random.seed(12)data = dict( cond=np.repeat(['A','B'], 200), rating=np.concatenate((np.random.normal(0, 1, 200), np.random.normal(1, 1.5, 200))))(ggplot(data, aes(x='rating', fill='cond')) + geom_density(color='dark_green', alpha=.7) + scale_fill_brewer(type='seq') + ggsize(800, 350))0.5s
0.0s