I have a multivariate dataset that looks like this:
My goal is to generate a boxplot to visualize the distribution of values in Treat1, Treat2 , Treat3 and Treat4.
I can get to a barchart to get exactly what I want based on
How to add group labels for bar charts in matplotlib?
However my requirement is for box plot to look at the distribution between mean and outliers for each Treat group. I am pasting the code again that generates the bar graph that is based on the stackoverflow code https://stackoverflow.com/users/2846871/varicus
df = df2.groupby(['Group','Category','Day ']).sum()
fig = plt.figure(figsize=(20,8))
ax = fig.add_subplot(111)
df.plot(kind='bar',stacked=False,ax=fig.gca())
labels = ['' for item in ax.get_xticklabels()]
ax.set_xticklabels(labels)
ax.set_xlabel('')
label_group_bar_table(ax, df)
fig.subplots_adjust(bottom=.1*df.index.nlevels)
plt.show()
What would be the best way to generate a Boxplot instead of each bar.