In [1]:
import seaborn as sns
import matplotlib.pyplot as plt
In [2]:
df = sns.load_dataset('iris')
df.head()
Out[2]:
In [3]:
sns.boxplot( y = df["sepal_length"] );
plt.show()
In [4]:
sns.boxplot( x = df["sepal_length"], y = df["species"] );
plt.show()
In [5]:
sns.boxplot( x = df["sepal_length"], y = df["species"] , palette="Blues");
plt.show()
In [6]:
sns.boxplot( x = df["species"], y = df["sepal_length"], palette="Blues");
plt.show()
In [7]:
sns.boxplot( x=df["species"], y=df["sepal_length"] );
plt.show()
In [8]:
sns.boxplot( x = df["species"], y = df["sepal_length"], width = 0.3);
plt.show()
In [ ]: