mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-25 00:22:34 +02:00
Added rounding on Metric table to 6 digits to limit the noise (#386)
Currently to many digits are shown in the Metrics table. Rounding to 6 digits should be a bit better.
This commit is contained in:
parent
119a3edfca
commit
4e63c6e907
@ -56,6 +56,7 @@ def update_table(
|
||||
"""_summary_."""
|
||||
table_df = metrics.sort_values(metric_dropdown_value, ascending=False).head(10)
|
||||
table_df = table_df[["designation", "category", metric_dropdown_value]]
|
||||
table_df[metric_dropdown_value] = table_df[metric_dropdown_value].round(6)
|
||||
columns = [{"name": i, "id": i} for i in table_df.columns]
|
||||
return table_df.to_dict("records"), columns # type: ignore
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user