image_output_1.png
import matplotlib.pyplot as plt #drawing library

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

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

data.columns

data.Species.unique()

setosa = data[data.Species == 'Iris-setosa']
versicolor = data[data.Species == 'Iris-versicolor']
virginica = data[data.Species == 'Iris-virginica']
plt.plot(setosa.Id, setosa.PetalLengthCm, color='red', label='setosa')
plt.plot(versicolor.Id, versicolor.PetalLengthCm, color='green', label='versicolor')
plt.plot(virginica.Id, virginica.PetalLengthCm, color='blue', label='virginica')
plt.xlabel('Id')
plt.ylabel('PetalLengthCm')
plt.legend()
plt.show()