March 2020
Beginner to intermediate
352 pages
8h 40m
English
We can group the data by different time periods and present them in box plots:
fig, axes = plt.subplots(3, 1, figsize=(8, 7), sharex=True)for name, ax in zip(['Consumption', 'Solar', 'Wind'], axes): sns.boxplot(data=df_power, x='Month', y=name, ax=ax) ax.set_ylabel('GWh') ax.set_title(name) if ax != axes[-1]: ax.set_xlabel('')
The output of the preceding code is given here:

The preceding plot illustrates that electricity consumption is generally higher in the winter and lower in the summer. Wind production is higher during ...
Read now
Unlock full access