Time Series Analysis, Exploratory Data Analysis, Feature Engineering, Energy Consumption, Data Science.
df.index] df_plot = df[df['year'] >= 2017].reset_index().sort_values(by='Datetime').set_index('Datetime') plt.title(f'Boxplot Year Month Distribution'); plt.xticks(rotation=90) plt.xlabel('Year Month') plt.ylabel('MW') sns.boxplot(x='year_month', y='PJME_MW', data=df_plot) plt.ylabel('Consumption