Skip to content

Commit 781602e

Browse files
committed
fix: plot monthly demand
1 parent 00e3c7c commit 781602e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/pownet/core/output.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ def get_daily_demand(self, input_demand: pd.DataFrame) -> pd.Series:
145145

146146
def get_monthly_demand(self, input_demand: pd.DataFrame) -> pd.Series:
147147
monthly_demand = self.get_hourly_demand(input_demand)
148+
monthly_demand = monthly_demand.to_frame()
148149
monthly_demand["month"] = self.dates["date"].dt.to_period("M")
149150
monthly_demand = monthly_demand.groupby("month").sum()
150151
monthly_demand.index = monthly_demand.index.strftime("%b")

0 commit comments

Comments
 (0)