[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
39e853e2b3
commit
0e1e509006
@ -845,9 +845,11 @@ def build_district_heat_share(countries: List[str], idees: pd.DataFrame) -> pd.S
|
|||||||
district_heat = idees[["derived heat residential", "derived heat services"]].sum(
|
district_heat = idees[["derived heat residential", "derived heat services"]].sum(
|
||||||
axis=1
|
axis=1
|
||||||
)
|
)
|
||||||
total_heat = idees[["thermal uses residential", "thermal uses services"]].sum(
|
total_heat = (
|
||||||
axis=1
|
idees[["thermal uses residential", "thermal uses services"]]
|
||||||
).replace(0, np.nan)
|
.sum(axis=1)
|
||||||
|
.replace(0, np.nan)
|
||||||
|
)
|
||||||
|
|
||||||
district_heat_share = district_heat / total_heat
|
district_heat_share = district_heat / total_heat
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user