[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(
|
||||
axis=1
|
||||
)
|
||||
total_heat = idees[["thermal uses residential", "thermal uses services"]].sum(
|
||||
axis=1
|
||||
).replace(0, np.nan)
|
||||
total_heat = (
|
||||
idees[["thermal uses residential", "thermal uses services"]]
|
||||
.sum(axis=1)
|
||||
.replace(0, np.nan)
|
||||
)
|
||||
|
||||
district_heat_share = district_heat / total_heat
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user