diff --git a/scripts/simplify_network.py b/scripts/simplify_network.py index 48a58ed4..f88d10d4 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.fillna(0), c) + import_components_from_dataframe(n, df, c) for attr, df in pnl.items(): if not df.empty: import_series_from_dataframe(n, df, c, attr)