Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The Data Analysis Workshop

You're reading from   The Data Analysis Workshop Solve business problems with state-of-the-art data analysis models, developing expert data analysis skills along the way

Arrow left icon
Product type Paperback
Published in Jul 2020
Publisher Packt
ISBN-13 9781839211386
Length 626 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Konstantin Palagachev Konstantin Palagachev
Author Profile Icon Konstantin Palagachev
Konstantin Palagachev
Gururajan Govindan Gururajan Govindan
Author Profile Icon Gururajan Govindan
Gururajan Govindan
Shubhangi Hora Shubhangi Hora
Author Profile Icon Shubhangi Hora
Shubhangi Hora
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Preface
1. Bike Sharing Analysis 2. Absenteeism at Work FREE CHAPTER 3. Analyzing Bank Marketing Campaign Data 4. Tackling Company Bankruptcy 5. Analyzing the Online Shopper's Purchasing Intention 6. Analysis of Credit Card Defaulters 7. Analyzing the Heart Disease Dataset 8. Analyzing Online Retail II Dataset 9. Analysis of the Energy Consumed by Appliances 10. Analyzing Air Quality Appendix

7. Analyzing the Heart Disease Dataset

Activity 7.01: Checking for Outliers

  1. Plot a box plot using sns.boxplot for the st_depr column:
    sd = sns.boxplot(df['st_depr'])
    plt.show()

    The output will be as follows:

    Figure 7.22: Box plot for st_depr

    Figure 7.22: Box plot for st_depr

  2. Plot a box plot using sns.boxplot for the colored_vessels column:
    cv = sns.boxplot(df['colored_vessels'])
    plt.show()

    The output will be as follows:

    Figure 7.23: Boxplot for colored_vessels

    Figure 7.23: Boxplot for colored_vessels

  3. Plot a box plot using sns.boxplot for the thalassemia column:
    t = sns.boxplot(df['thalassemia'])
    plt.show()

    The output will be as follows:

    Figure 7.24: Boxplot for thalassemia

Figure 7.24: Boxplot for thalassemia

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.

Activity 7.02: Plotting Distributions and Relationships between Columns with Respect to the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime