From 1b98e5831a75d3b1c160f42a4666c3cee01abf05 Mon Sep 17 00:00:00 2001 From: smilesun Date: Thu, 5 Dec 2024 13:43:24 +0100 Subject: [PATCH] csv agg mean, std to text table --- scripts/generate_latex_table.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/generate_latex_table.py b/scripts/generate_latex_table.py index 4b35f4209..caa333aab 100644 --- a/scripts/generate_latex_table.py +++ b/scripts/generate_latex_table.py @@ -12,6 +12,8 @@ def gen_latex_table(raw_df, fname="table_perf.tex", """ df_result = raw_df.groupby(group)[str_perf].agg(["mean", "std"]) latex_table = df_result.to_latex(float_format="%.3f") + str_table = df_result.to_string() + print(str_table) with open(fname, 'w') as file: file.write(latex_table)