add_electricity.py Resolve FutureWarning 771 Index.__or__ operating as set operation is deprecated

This commit is contained in:
eb5194 2021-01-19 15:20:58 +01:00
parent df2425d4a0
commit ea8e643dc4

View File

@ -332,7 +332,7 @@ def attach_hydro(n, costs, ppl):
country = ppl['bus'].map(n.buses.country).rename("country")
inflow_idx = ror.index | hydro.index
inflow_idx = ror.index.union(hydro.index)
if not inflow_idx.empty:
dist_key = ppl.loc[inflow_idx, 'p_nom'].groupby(country).transform(normed)