simplify_network&pandas21: nans not supported

This commit is contained in:
martacki 2023-12-18 11:43:04 +01:00
parent 68aef7b628
commit ea42b3797d

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