text_plain_output_1.png
import pandas as pd

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.cp, df.target).plot(kind='bar', rot=0, xlabel='Chest Pain', ylabel='Frequency', title='Frequency Graph between the Chest Pain and Target')