simplify_network: revert fillna

This commit is contained in:
Fabian 2023-12-18 12:44:21 +01:00
parent 4f67160993
commit cc08dff280

View File

@ -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)