district heating: handle missing GB data for 2020-2021

This commit is contained in:
Fabian Neumann 2024-03-13 13:42:29 +01:00
parent 5b5d308bf7
commit 955d6837fd

View File

@ -611,6 +611,11 @@ def build_district_heat_share(countries, idees):
district_heat_share.name = "district heat share"
# restrict to available years
district_heat_share = (
district_heat_share.unstack().dropna(how="all", axis=1).ffill(axis=1)
)
return district_heat_share