Spaces:
Running
Running
michal
commited on
Commit
·
a023ed3
1
Parent(s):
2f9a19f
Udate
Browse files
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 |
-
|
|
|
|
|
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)
|