From 07c857301fa713b12a1b5d89029354b23b4f349b Mon Sep 17 00:00:00 2001 From: Michael Grupp Date: Tue, 14 Nov 2023 17:22:43 +0100 Subject: [PATCH] Change more pd.Series accessors to iloc. (#606) Forgotten in the previous commit related to the FutureWarning. --- evo/main_res.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evo/main_res.py b/evo/main_res.py index 6d9e7f1a..af7eebaf 100644 --- a/evo/main_res.py +++ b/evo/main_res.py @@ -119,7 +119,7 @@ def run(args: argparse.Namespace) -> None: if not differs: continue else: - mismatching_title = df.loc["info", "title"][i] + mismatching_title = df.loc["info", "title"].iloc[i] mismatching_file = args.result_files[i] logger.debug(SEP) logger.warning( @@ -176,7 +176,7 @@ def run(args: argparse.Namespace) -> None: # labels according to first dataset if "xlabel" in df.loc["info"].index and not df.loc[ "info", "xlabel"].isnull().values.any(): - index_label = df.loc["info", "xlabel"][0] + index_label = df.loc["info", "xlabel"].iloc[0] else: index_label = "$t$ (s)" if common_index else "index" metric_label = df.loc["info", "label"].iloc[0]