text_html_output_1.png
import matplotlib.pyplot as plt

import numpy as np

import pandas as pd

import seaborn as sns

df = pd.read_csv('/kaggle/input/hearts/heart.csv')

np.shape(df)

df.rename(columns={'cp': 'chest_pain_type', 'trestbps': 'bloodpress_med', 'chol': 'chol_serum', 'fbs': 'bloodsugar_fast', 'restecg': 'rest_ecg', 'thalach': 'max_heartrate', 'exang': 'exc_angina', 'ca': 'major_vessels'}, inplace=True)

df = df.drop_duplicates()
np.shape(df)

df.cov(numeric_only=True)

df.corr(numeric_only=True)

print('age vs bloodpess_med')
sns.scatterplot(data=df, x='age', y='bloodpress_med', hue='bloodsugar_fast')
plt.show()