Skip to content

Commit

Permalink
Replace ._append() with pd.concat()
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey committed Dec 12, 2024
1 parent 1b61d33 commit 59c4ace
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions message_ix_models/tools/costs/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def _get_module_scenarios_reduction(
)
]

# append scen_red_module to scen_red_energy
scenarios_joined = scenarios_energy._append(scenarios_module).reset_index(
drop=True
# concat scenarios_energy and scenarios_module
scenarios_joined = pd.concat(
[scenarios_energy, scenarios_module], ignore_index=True
)
else:
scenarios_joined = scenarios_energy.copy()
Expand Down Expand Up @@ -223,9 +223,9 @@ def _get_module_cost_reduction(
)
]

# append scen_red_module to scen_red_energy
reduction_joined = reduction_energy._append(reduction_module).reset_index(
drop=True
# concat reduction_energy and reduction_module
reduction_joined = pd.concat(
[reduction_energy, reduction_module], ignore_index=True
)
else:
reduction_joined = reduction_energy.copy()
Expand Down

0 comments on commit 59c4ace

Please sign in to comment.