xxxxxxxxxx
# with colors
sns.boxplot(x="variable", y="value", data=pd.melt(df))
xxxxxxxxxx
>>> data = np.random.randn(25, 4)
>>> df = pd.DataFrame(data, columns=list('ABCD'))
>>> ax = df.plot.box()
xxxxxxxxxx
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
ax.boxplot([df1["col"], df2["col"]])
ax.set_xticklabels(["DF1", "DF2"])
ax.set_ylabel("col")
plt.show()
xxxxxxxxxx
np.random.seed(1234)
>>> df = pd.DataFrame(np.random.randn(10, 4),
columns=['Col1', 'Col2', 'Col3', 'Col4'])
>>> boxplot = df.boxplot(column=['Col1', 'Col2', 'Col3'])