text_html_output_1.png text_plain_output_1.png
from sklearn.preprocessing import LabelEncoder

import pandas as pd

data = pd.read_csv('../input/breast-cancer/breast-cancer - breast-cancer.csv')

le = LabelEncoder()
data['diagnosis'] = le.fit_transform(data['diagnosis'])
data['diagnosis'].head()