From 5ec654d5202244eaa3fe3529e62c7f517a3ff351 Mon Sep 17 00:00:00 2001 From: Alexander Andreev Date: Fri, 23 Aug 2024 10:31:11 +0100 Subject: [PATCH] Move summary sheet to first place in report --- sklbench/report/implementation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sklbench/report/implementation.py b/sklbench/report/implementation.py index b577ab55..28fa2bb0 100644 --- a/sklbench/report/implementation.py +++ b/sklbench/report/implementation.py @@ -353,7 +353,7 @@ def generate_report(args: argparse.Namespace): summary_df = summary_df[summary_df.columns.sortlevel(level=0, ascending=False)[0]] logger.info(f"{custom_format('Report summary', bcolor='HEADER')}\n{summary_df}") if summary_df.size > 0: - summary_ws = wb.create_sheet("Summary") + summary_ws = wb.create_sheet(title="Summary", index=0) write_df_to_sheet(summary_df, summary_ws) apply_rules_for_sheet(summary_ws, args.perf_color_scale, args.quality_color_scale) # write environment info