add_electricity.py Resolve FutureWarning 771 Index.__or__ operating as set operation is deprecated
This commit is contained in:
parent
df2425d4a0
commit
ea8e643dc4
@ -332,7 +332,7 @@ def attach_hydro(n, costs, ppl):
|
|||||||
|
|
||||||
country = ppl['bus'].map(n.buses.country).rename("country")
|
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:
|
if not inflow_idx.empty:
|
||||||
dist_key = ppl.loc[inflow_idx, 'p_nom'].groupby(country).transform(normed)
|
dist_key = ppl.loc[inflow_idx, 'p_nom'].groupby(country).transform(normed)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user