text_plain_output_1.png
import matplotlib.pyplot as plt

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)

import seaborn as sns

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()

fig1 = plt.figure(figsize=(10,8))
sns.heatmap(df.corr(),annot=True,cmap='YlGnBu',vmax=1.0,vmin=-1.0)

fig2 = plt.figure(figsize=(6, 6))
sns.pairplot(df.iloc[:, 1:], hue='class', palette='Set2')