We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00e3c7c commit 781602eCopy full SHA for 781602e
src/pownet/core/output.py
@@ -145,6 +145,7 @@ def get_daily_demand(self, input_demand: pd.DataFrame) -> pd.Series:
145
146
def get_monthly_demand(self, input_demand: pd.DataFrame) -> pd.Series:
147
monthly_demand = self.get_hourly_demand(input_demand)
148
+ monthly_demand = monthly_demand.to_frame()
149
monthly_demand["month"] = self.dates["date"].dt.to_period("M")
150
monthly_demand = monthly_demand.groupby("month").sum()
151
monthly_demand.index = monthly_demand.index.strftime("%b")
0 commit comments