From 55eddb6e1d0588ea8e6c2d335d0af52d44471d14 Mon Sep 17 00:00:00 2001 From: martacki Date: Tue, 16 Jan 2024 20:13:28 +0100 Subject: [PATCH] Norway currently ignored when building energy totals --- scripts/build_energy_totals.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build_energy_totals.py b/scripts/build_energy_totals.py index 67b86466..80c5d442 100644 --- a/scripts/build_energy_totals.py +++ b/scripts/build_energy_totals.py @@ -479,7 +479,7 @@ def build_energy_totals(countries, eurostat, swiss, idees): # The main heating source for about 73 per cent of the households is based on electricity # => 26% is non-electric - if "NO" in df: + if "NO" in df.index: elec_fraction = 0.73 no_norway = df.drop("NO")