From f825544c3bf9b30829b97c4ce71c7d107191ce02 Mon Sep 17 00:00:00 2001 From: ekatef Date: Wed, 11 Oct 2023 12:26:30 +0300 Subject: [PATCH] Remove duplication in column names --- scripts/build_retro_cost.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_retro_cost.py b/scripts/build_retro_cost.py index c9912b2f..5449c4f1 100644 --- a/scripts/build_retro_cost.py +++ b/scripts/build_retro_cost.py @@ -949,7 +949,8 @@ def sample_dE_costs_area( .rename(index=rename_sectors, level=2) .reset_index() ) - .rename(columns={"country": "country_code"}) + # if uncommented, leads to the second `country_code` column + # .rename(columns={"country": "country_code"}) .set_index(["country_code", "subsector", "bage"]) )