text_plain_output_2.png text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

data = '../input/Iris.csv'
dataset = pd.read_csv(data)

dataset = dataset.drop('Id', axis=1)

dataset.groupby('Species').size()

sns.set(style='darkgrid', palette='deep')

sns.set(style='darkgrid', palette='deep')

sns.set(style='darkgrid', palette='deep')
plt.figure(figsize=(12, 6))
plt.title('Compare the distribution of Petal Length')
sns.boxplot(x='Species', y='PetalLengthCm', data=dataset)
plt.show()