#### Overview of this book

Businesses today operate online and generate data almost continuously. While not all data in its raw form may seem useful, if processed and analyzed correctly, it can provide you with valuable hidden insights. The Data Analysis Workshop will help you learn how to discover these hidden patterns in your data, to analyze them, and leverage the results to help transform your business. The book begins by taking you through the use case of a bike rental shop. You'll be shown how to correlate data, plot histograms, and analyze temporal features. As you progress, you’ll learn how to plot data for a hydraulic system using the Seaborn and Matplotlib libraries, and explore a variety of use cases that show you how to join and merge databases, prepare data for analysis, and handle imbalanced data. By the end of the book, you'll have learned different data analysis techniques, including hypothesis testing, correlation, and null-value imputation, and will have become a confident data analyst.
Table of Contents (12 chapters)
Preface
1. Bike Sharing Analysis
Free Chapter
2. Absenteeism at Work
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

# 9. Analysis of the Energy Consumed by Appliances

## Activity 9.01: Analyzing the Appliances Energy Consumption

1. Using seaborn, plot a boxplot for the `a_energy` column:
`app_box = sns.boxplot(new_data.a_energy)`

The output will be as follows:

Figure 9.28: Box plot of a_energy

2. Use `.sum()` to determine the total number of instances wherein the value of the energy consumed by appliances is above 200 Wh:
```out = (new_data['a_energy'] > 200).sum()
out```

The output will be as follows:

`1916`
3. Calculate the percentage of the number of instances wherein the value of the energy consumed by appliances is above 200 Wh:
`(out/19735) * 100`

The output will be as follows:

`9.708639473017481`
4. Use `.sum()` to check the total number of instances wherein the value of the energy consumed by appliances is above 950 Wh:
```out_e = (new_data['a_energy'] > 950).sum()
out_e```

The output will be as follows:

`2`
5. Calculate the percentage of the number of instances wherein the value of the energy consumed...