Skip to content

Commit

Permalink
include missing inplace arg
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosEpia committed Dec 17, 2024
1 parent 25bc3ab commit 1b22e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/egon/data/datasets/scenario_capacities.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def insert_data_nep():
insert_capacities_per_federal_state_nep()


def eGon100_capacities(year="2045"):
def eGon100_capacities():
"""Inserts installed capacities for the eGon100 scenario
Returns
Expand Down Expand Up @@ -805,7 +805,7 @@ def eGon100_capacities(year="2045"):
df_year = df.rename(
{f"p_nom_{year}": "capacity", "index": "carrier"}, axis="columns"
)
df_year.drop(df_year.columns[~df_year.columns.isin(["carrier", 'component', "capacity"])], axis="columns")
df_year.drop(df_year.columns[~df_year.columns.isin(["carrier", 'component', "capacity"])], axis="columns", inplace=True)

if year == "2045":
df_year["scenario_name"] = "eGon100RE"
Expand Down

0 comments on commit 1b22e42

Please sign in to comment.