9. Analysis of the Energy Consumed by Appliances
Activity 9.01: Analyzing the Appliances Energy Consumption
- Using seaborn, plot a boxplot for the
a_energy
column:app_box = sns.boxplot(new_data.a_energy)
The output will be as follows:
- 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
- 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
- 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
- Calculate the percentage of the number of instances wherein the value of the energy consumed...