image_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import numpy as np # linear algebra

import pandas as pd

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

df = pd.read_csv('../input/ex-1-dataset-iris/iris.csv')
df.shape

df.loc[df['variety'] == 'Setosa']
df_Setosa = df.loc[df['variety'] == 'Setosa']
df_Virginica = df.loc[df['variety'] == 'Virginica']
df_Versicolor = df.loc[df['variety'] == 'Versicolor']
plt.scatter(df_Setosa['sepal.width'], np.zeros_like(df_Setosa['sepal.width']))
plt.scatter(df_Virginica['sepal.width'], np.zeros_like(df_Virginica['sepal.width']))
plt.scatter(df_Versicolor['sepal.width'], np.zeros_like(df_Versicolor['sepal.width']))
plt.xlabel('sepal.width')
plt.show()