Skip to content

Commit

Permalink
Change more pd.Series accessors to iloc. (#606)
Browse files Browse the repository at this point in the history
Forgotten in the previous commit related to the FutureWarning.
  • Loading branch information
MichaelGrupp authored Nov 14, 2023
1 parent 696d541 commit 07c8573
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions evo/main_res.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 07c8573

Please sign in to comment.