text_plain_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

import seaborn as sns

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

C = data['diagnosis'].value_counts()

corr = data.corr()
top_feature = corr.index[abs(corr['diagnosis']) > 0.5]
print(top_feature.values)
Important_Data = data[top_feature.values]
plt.subplots(figsize=(20, 10))
top_corr = data[top_feature].corr()
sns.heatmap(top_corr, annot=True)
plt.show()