From c78dab8ebb487ae2591e972fa0c818b4501527f1 Mon Sep 17 00:00:00 2001 From: mfleschutz Date: Wed, 22 May 2024 23:30:52 +0200 Subject: [PATCH] Fix deprecated set as indexer error --- elmada/from_entsoe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elmada/from_entsoe.py b/elmada/from_entsoe.py index 0be3574..875fb4f 100644 --- a/elmada/from_entsoe.py +++ b/elmada/from_entsoe.py @@ -273,7 +273,7 @@ def prep_residual_load( def get_subset_of(df, subset: Union[List, Set]) -> Tuple[pd.Series, Set]: wanted = set(subset) available = wanted.intersection(set(df.keys())) - return df[available].sum(axis=1), available + return df[list(available)].sum(axis=1), available def get_conventional_generation(year, freq, country) -> pd.Series: