attila-balint-kul commited on
Commit
b272f86
1 Parent(s): 23e3734

Cleanup components

Browse files
Files changed (1) hide show
  1. components.py +2 -2
components.py CHANGED
@@ -309,7 +309,7 @@ def performance_view(data: pd.DataFrame, models_to_plot: set[str]):
309
  key="table_aggregation",
310
  )
311
 
312
- metrics_per_building_table = data_to_plot.groupby(["model"]).agg(
313
  aggregation, numeric_only=True
314
  )[
315
  [
@@ -330,7 +330,7 @@ def performance_view(data: pd.DataFrame, models_to_plot: set[str]):
330
  return styler
331
 
332
  st.markdown(f"#### {aggregation.capitalize()} {metric} stats per model")
333
- styled_table = metrics_per_building_table.style.pipe(custom_table)
334
  st.dataframe(styled_table, use_container_width=True)
335
 
336
  metrics_per_building_table = (
 
309
  key="table_aggregation",
310
  )
311
 
312
+ metrics_table = data_to_plot.groupby(["model"]).agg(
313
  aggregation, numeric_only=True
314
  )[
315
  [
 
330
  return styler
331
 
332
  st.markdown(f"#### {aggregation.capitalize()} {metric} stats per model")
333
+ styled_table = metrics_table.style.pipe(custom_table)
334
  st.dataframe(styled_table, use_container_width=True)
335
 
336
  metrics_per_building_table = (