text_html_output_1.png
from sklearn.preprocessing import LabelEncoder

import pandas as pd

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

df = iris.drop(['Id'], axis=1)

df.isnull().sum()

from sklearn.preprocessing import LabelEncoder
le = LabelEncoder()

df['Species'] = le.fit_transform(df['Species'])
print(df.head())
print(df[50:55])
print(df.tail())