text_html_output_1.png
from sklearn.preprocessing import LabelEncoder

import pandas as pd

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

y = data.Species

from sklearn.preprocessing import LabelEncoder
encoder = LabelEncoder()
y_data = encoder.fit_transform(y)

y_data