Skip to content

Commit

Permalink
csv agg mean, std to text table
Browse files Browse the repository at this point in the history
  • Loading branch information
smilesun committed Dec 5, 2024
1 parent 51c26d1 commit 1b98e58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate_latex_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 1b98e58

Please sign in to comment.