text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd

import seaborn as sns

df = pd.read_csv('../input/heart-disease-uci/heart.csv')

df.shape

pd.crosstab(df.sex, df.target)

pd.crosstab(df.cp, df.target)

pd.crosstab(df.age, df.trestbps)

df.corr()

corr_matrix = df.corr()
plt.figure(figsize=(15, 10))
sns.heatmap(corr_matrix, fmt='.2f', linewidth=0.5, annot=True, cmap='Blues')