Skip to content

Commit

Permalink
Fix deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleschutz committed May 24, 2024
1 parent 82b5677 commit a3bde5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elmada/from_entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def prep_XEFs(year: int = 2019, freq: str = "60min", country: str = "DE") -> pd.
)
ce_F = spec_emissions[used_country]
x = set(shares_TF.keys()) & set(ce_F.keys())
ce_T = shares_TF[x] @ ce_F[x]
ce_T = shares_TF[list(x)] @ ce_F[list(x)]
ce_T = ce_T.fillna(ce_T.mean())

hp.warn_if_incorrect_index_length(ce_T, year, freq)
Expand Down
2 changes: 1 addition & 1 deletion elmada/from_other.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_sandbag_eua_prices() -> Dict:
df = pd.read_csv(io, sep=";", decimal=",", index_col=0, skiprows=2)

df.index = pd.to_datetime(df.index)
df = df.resample("Y").mean()
df = df.resample("YE").mean()
df = df.set_index(df.index.year, drop=True)
return df.squeeze().to_dict()

Expand Down

0 comments on commit a3bde5d

Please sign in to comment.