Time Series Analysis, Exploratory Data Analysis, Feature Engineering, Energy Consumption, Data Science.
daily. Before going deep into these plots, let’s first set up some variables in our Pandas dataframe: # Defining required fields df['year'] = [x for x in df.index.year] df['month'] = [x for x in df.index.month] df = df.reset_index() df['week'] = df['Datetime'].apply(lambda x:x.week) df =