[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
dea48c965a
commit
028d0d6e7a
@ -860,8 +860,9 @@ def build_district_heat_share(countries: List[str], idees: pd.DataFrame) -> pd.S
|
|||||||
.squeeze()
|
.squeeze()
|
||||||
)
|
)
|
||||||
# make conservative assumption and take minimum from both data sets
|
# make conservative assumption and take minimum from both data sets
|
||||||
new_index = pd.MultiIndex.from_product([dh_share.index,
|
new_index = pd.MultiIndex.from_product(
|
||||||
district_heat_share.index.get_level_values(1).unique()])
|
[dh_share.index, district_heat_share.index.get_level_values(1).unique()]
|
||||||
|
)
|
||||||
district_heat_share = pd.concat(
|
district_heat_share = pd.concat(
|
||||||
[district_heat_share, dh_share.reindex(new_index, level=0)], axis=1
|
[district_heat_share, dh_share.reindex(new_index, level=0)], axis=1
|
||||||
).min(axis=1)
|
).min(axis=1)
|
||||||
|
Loading…
Reference in New Issue
Block a user