From 2e8f1afb4e584e30901a6c2dc185551bf9af51c8 Mon Sep 17 00:00:00 2001 From: Gyorgy Szaszko Date: Fri, 22 Mar 2024 12:36:39 +0100 Subject: [PATCH] showcases: eliminated more warnings from inet.scave.plot --- python/inet/scave/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: