text_plain_output_1.png
import numpy as np

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('/kaggle/input/breast-cancer-csv/breastCancer.csv')
df

df.shape

df.columns

c = {col: df[df[col] == '?'].shape[0] for col in df.columns}
c

import numpy as np
for i in range(df.shape[1]):
    for j in range(df.shape[0]):
        if df.iloc[j, i] == '?':
            df.iloc[j, i] = np.NaN

df.corr()