We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 838143b commit 27d7572Copy full SHA for 27d7572
message_ix/tests/test_macro.py
@@ -79,9 +79,9 @@ def test_calc_valid_years(westeros_solved):
79
data = pd.read_excel(W_DATA_PATH, sheet_name=None, engine="openpyxl")
80
# Adding an arbitrary year
81
arbitrary_yr = 2021
82
- gdp_extra_yr = data["gdp_calibrate"].iloc[0, :].copy()
+ gdp_extra_yr = data["gdp_calibrate"].copy()
83
gdp_extra_yr["year"] = arbitrary_yr
84
- data["gdp_calibrate"] = data["gdp_calibrate"].append(gdp_extra_yr)
+ data["gdp_calibrate"] = pd.concat([data["gdp_calibrate"], gdp_extra_yr])
85
# Check the arbitrary year is not in config
86
assert arbitrary_yr not in data["config"]["year"]
87
# But it is in gdp_calibrate
0 commit comments