-
Notifications
You must be signed in to change notification settings - Fork 13
Compatibility issues with panda 2.0 #87
Description
Hey,
First of all thanks for all the effort! However I found a piece of code that needs to be updated, see the following StackOverflow entry:
https://stackoverflow.com/questions/75956209/error-dataframe-object-has-no-attribute-append
File ~\anaconda3\lib\site-packages\spyder_kernels\py3compat.py:356 in compat_exec
exec(code, globals, locals)
File c:\users\lothar\documents\github\elecsim\tst.py:1
from elecsim.model.world import World
File ~\Documents\GitHub\elecsim\elecsim_init_.py:1
from elecsim.model.world import World
File ~\Documents\GitHub\elecsim\elecsim\model\world.py:15
from elecsim.plants.fuel.capacity_factor.capacity_factor_calculations import (
File ~\Documents\GitHub\elecsim\elecsim\plants\fuel\capacity_factor\capacity_factor_calculations.py:9
import elecsim.scenario.scenario_data
File ~\Documents\GitHub\elecsim\elecsim\scenario\scenario_data.py:143
carbon_price_all_years = concatenate_carbon_price()
File ~\Documents\GitHub\elecsim\elecsim\scenario\scenario_data.py:138 in concatenate_carbon_price
carbon_cost = historical_carbon_price.append(carbon_price_scenario_df, sort=True)
File ~\anaconda3\lib\site-packages\pandas\core\generic.py:5989 in getattr
return object.getattribute(self, name)
AttributeError: 'DataFrame' object has no attribute 'append'