From ea42b3797ded1ab4f836ccb95efde49aa19d0527 Mon Sep 17 00:00:00 2001 From: martacki Date: Mon, 18 Dec 2023 11:43:04 +0100 Subject: [PATCH] simplify_network&pandas21: nans not supported --- scripts/simplify_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/simplify_network.py b/scripts/simplify_network.py index f88d10d4..48a58ed4 100644 --- a/scripts/simplify_network.py +++ b/scripts/simplify_network.py @@ -243,7 +243,7 @@ def _aggregate_and_move_components( def replace_components(n, c, df, pnl): n.mremove(c, n.df(c).index) - import_components_from_dataframe(n, df, c) + import_components_from_dataframe(n, df.fillna(0), c) for attr, df in pnl.items(): if not df.empty: import_series_from_dataframe(n, df, c, attr)