1>>> ax = sns.boxplot(x="day", y="total_bill", hue="smoker",
2... data=tips, palette="Set3")
3
1import numpy as np; np.random.seed(42)
2import pandas as pd
3import matplotlib.pyplot as plt
4import seaborn as sns
5
6df = pd.DataFrame(data = np.random.random(size=(4,4)), columns = ['A','B','C','D'])
7
8sns.boxplot(x="variable", y="value", data=pd.melt(df))
9
10plt.show()
11