import numpy as np from lets_plot import * LetsPlot.setup_html()
n = 100 np.random.seed(42) x = np.random.choice(['a', 'b', 'c'], size=n) y = np.random.normal(size=n) ggplot({'x': x, 'y': y}, aes(x='x', y='y')) + geom_boxplot(whisker_width=0.2)