Skip to content

Commit

Permalink
Fix deprecated set as indexer error
Browse files Browse the repository at this point in the history
  • Loading branch information
mfleschutz committed May 22, 2024
1 parent 7900519 commit c78dab8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elmada/from_entsoe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c78dab8

Please sign in to comment.