Update make_summary.py

The value for `na_action` needs to be "ignore" or "None".
This commit is contained in:
Huang, Jiangyi 2022-11-03 13:46:20 +01:00 committed by GitHub
parent 776596ab9a
commit 80868e5f0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -273,7 +273,7 @@ def calculate_supply(n, label, supply):
for end in [col[3:] for col in c.df.columns if col[:3] == "bus"]:
items = c.df.index[c.df["bus" + end].map(bus_map, na_action=False)]
items = c.df.index[c.df["bus" + end].map(bus_map, na_action=None)]
if len(items) == 0:
continue
@ -318,7 +318,7 @@ def calculate_supply_energy(n, label, supply_energy):
for end in [col[3:] for col in c.df.columns if col[:3] == "bus"]:
items = c.df.index[c.df["bus" + str(end)].map(bus_map, na_action=False)]
items = c.df.index[c.df["bus" + str(end)].map(bus_map, na_action=None)]
if len(items) == 0:
continue