From 136d140ea96a0a805ba081c230dff270455fe30c Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Thu, 20 Mar 2025 10:41:49 +0000 Subject: [PATCH] Fix comparison for `indifferent` metric type in report --- sklbench/report/implementation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sklbench/report/implementation.py b/sklbench/report/implementation.py index 28fa2bb0..1c9c01cd 100644 --- a/sklbench/report/implementation.py +++ b/sklbench/report/implementation.py @@ -193,8 +193,8 @@ def select_comparison(i, j, diffs_selection): df_ith[column] / df_jth[column] ) elif column in METRICS["indifferent"]: - df[f"{comparison_name}\n{column} is equal"] = ( - df_ith[column] == df_jth[column] + df[f"{comparison_name}\n{column} is equal"] = df_ith[column].eq( + df_jth[column] ) df = df.reset_index() # move to multi-index