Removed deprecated pandas method

This commit is contained in:
Peter Yefi 2022-02-17 13:56:42 -05:00
parent 7f21cc22c3
commit e692f99316

View File

@ -215,7 +215,7 @@ class HeatPumpExport:
data = [electricity_df, fossil_df]
df = pd.concat(data, axis=1)
df = df.append(df.agg(['sum']))
df = pd.concat([df, df.agg(['sum'])])
s = pd.Series(["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec", "Total"])
df = df.set_index([s])
df.to_csv(self._output_path)