Question: Write in Python: a ) Reshape your dataframe so that you have columns of columns. Your outer set of columns should be the building, your
Write in Python:
a Reshape your dataframe so that you have columns of columns. Your outer set of columns should be the building, your inner set of columns should be the utility, and your rows should be the date.
Example data
Date:
Building:
Utility: NoneType object
nan
Utility: NaN
Utility: NoneType object
Utility:
b To exammine the impact of the newly opened Building of task a calculate the average utility use as a running average in day increments, day increments, and day increments, across the span of data. In what time period do you think this new addition may have opened? Keep in mind that such projects may not have a single date. Plot your solutions appropriately.
c In separate plots for each building, plot the utility use and the utility use in the same plot.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
