From 80868e5f0fbbfabe2b0a57bf677649c3b8561a75 Mon Sep 17 00:00:00 2001 From: "Huang, Jiangyi" Date: Thu, 3 Nov 2022 13:46:20 +0100 Subject: [PATCH] Update make_summary.py The value for `na_action` needs to be "ignore" or "None". --- scripts/make_summary.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/make_summary.py b/scripts/make_summary.py index 8d5f4e48..f9c74c89 100644 --- a/scripts/make_summary.py +++ b/scripts/make_summary.py @@ -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