Creating a Boxplot With Plotnine
Python
1| import plotnine as p9 2| import pandas as pd 3| 4| df = pd.read_csv(sales_data.csv) 5| 6| print(p9.ggplot(df) + 7| p9.aes(x='department', y='sales', fill='department') + 8| p9.geom_boxplot())
142
127
122
115