diff --git a/python/inet/scave/plot.py b/python/inet/scave/plot.py index 68c0db0b8ef..403f0caac4a 100644 --- a/python/inet/scave/plot.py +++ b/python/inet/scave/plot.py @@ -736,7 +736,7 @@ def remove_zero_index_if_present(df): pattern = re.compile(i[0]) match = re.fullmatch(pattern, df[order_column][j]) if match != None: - df['order'][j] = i[1] + df.loc[j, 'order'] = i[1] else: order_column = order[0] order_list = order[1:] @@ -747,7 +747,7 @@ def remove_zero_index_if_present(df): pattern = re.compile(order_list[order]) match = re.fullmatch(pattern, df[order_column][j]) if match != None: - df['order'][j] = order + df.loc[j, 'order'] = order # if debug: