text_html_output_1.png
import numpy as np

import pandas as pd

import seaborn as sns

import os
data = pd.read_csv('/kaggle/input/heart-disease/heart.csv')

data.shape

data.columns

data.nunique()

data.dtypes

data.loc[data['ca'] == 4, 'ca'] = np.NaN

data.loc[data['thal'] == 0, 'thal'] = np.NaN

data.isnull().sum()

data.isnull().sum()

data.duplicated().sum()

data[data.duplicated()]

data = data.drop_duplicates(keep='first')
data

data.duplicated().sum()

sns.boxplot(data, x='target', y='oldpeak', color='deeppink')