michal commited on
Commit
a023ed3
·
1 Parent(s): 2f9a19f
Files changed (1) hide show
  1. src/structures/pes_structure.py +3 -1
src/structures/pes_structure.py CHANGED
@@ -38,7 +38,9 @@ def filter_data(selected_columns, search_query):
38
 
39
  def filter_columns(column_choices):
40
  selected_columns = [col for col in ORDER_LIST if col in column_choices]
41
- return PES_ACCS[selected_columns]
 
 
42
 
43
  def load_json_data(file_path, order_list):
44
  PES_ACCS = pd.read_json(file_path)
 
38
 
39
  def filter_columns(column_choices):
40
  selected_columns = [col for col in ORDER_LIST if col in column_choices]
41
+ filtered_df = PES_ACCS[selected_columns]
42
+ return filtered_df.style.highlight_max(color=highlight_color, subset=filtered_df.columns[1:]).format(precision=2)
43
+
44
 
45
  def load_json_data(file_path, order_list):
46
  PES_ACCS = pd.read_json(file_path)