7. Analyzing the Heart Disease Dataset
Activity 7.01: Checking for Outliers
- Plot a box plot using
sns.boxplot
for thest_depr
column:sd = sns.boxplot(df['st_depr']) plt.show()
The output will be as follows:
- Plot a box plot using
sns.boxplot
for thecolored_vessels
column:cv = sns.boxplot(df['colored_vessels']) plt.show()
The output will be as follows:
- Plot a box plot using
sns.boxplot
for thethalassemia
column:t = sns.boxplot(df['thalassemia']) plt.show()
The output will be as follows:
Note
To access the source code for this specific section, please refer to https://packt.live/2N4I0DF.
You can also run this example online at https://packt.live/2BiGv2c. You must execute the entire Notebook in order to get the desired result.