text_plain_output_1.png
import pandas as pd

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

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

df.shape

df.isnull().sum()

df.drop(['Unnamed: 32', 'id'], axis=1, inplace=True)

df.diagnosis.value_counts()

df.diagnosis.replace({'M': 1, 'B': 2}, inplace=True)

x = df.values[:, 1:]

y = df.values[:, 0]

y