Spaces:
Sleeping
Sleeping
michal
commited on
Commit
β’
498bbe0
1
Parent(s):
9315c82
Udate
Browse files
src/structures/all_structure.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
|
|
3 |
|
4 |
abs_path = Path(__file__).parent.parent.parent
|
5 |
|
@@ -59,5 +60,5 @@ columns = list(ALL_ACCS.columns)
|
|
59 |
columns.insert(1, columns.pop(columns.index('Average')))
|
60 |
ALL_ACCS = ALL_ACCS[columns]
|
61 |
STYLED = ALL_ACCS.style.highlight_max(
|
62 |
-
color =
|
63 |
subset=ALL_ACCS.columns[-4:]).format(precision=2)
|
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
3 |
+
from ..styles import highlight_color
|
4 |
|
5 |
abs_path = Path(__file__).parent.parent.parent
|
6 |
|
|
|
60 |
columns.insert(1, columns.pop(columns.index('Average')))
|
61 |
ALL_ACCS = ALL_ACCS[columns]
|
62 |
STYLED = ALL_ACCS.style.highlight_max(
|
63 |
+
color = highlight_color,
|
64 |
subset=ALL_ACCS.columns[-4:]).format(precision=2)
|
src/structures/ldek_structure.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
|
|
3 |
|
4 |
abs_path = Path(__file__).parent.parent.parent
|
5 |
|
@@ -64,7 +65,7 @@ with open(file_path, 'r', encoding='utf-8') as file:
|
|
64 |
ORDER_LIST_LDEK, DATA_TYPES_LDEK = generate_ORDER_LIST_LDEK_and_data_types(sample_data)
|
65 |
LDEK_ACCS = load_json_data(file_path, ORDER_LIST_LDEK)
|
66 |
LDEK_ACCS = LDEK_ACCS.style.highlight_max(
|
67 |
-
color =
|
68 |
subset=LDEK_ACCS.columns[1:]).format(precision=2)
|
69 |
COLUMN_HEADERS_LDEK = ORDER_LIST_LDEK
|
70 |
print(ORDER_LIST_LDEK)
|
@@ -76,7 +77,7 @@ with open(file_path, 'r', encoding='utf-8') as file:
|
|
76 |
ORDER_LIST_LDEK_EN, DATA_TYPES_LDEK_EN = generate_ORDER_LIST_LDEK_and_data_types(sample_data2)
|
77 |
LDEK_EN_ACCS = load_json_data(file_path2, ORDER_LIST_LDEK_EN)
|
78 |
LDEK_EN_ACCS = LDEK_EN_ACCS.style.highlight_max(
|
79 |
-
color =
|
80 |
subset=LDEK_EN_ACCS.columns[1:]).format(precision=2)
|
81 |
COLUMN_HEADERS_LDEK_EN = ORDER_LIST_LDEK_EN
|
82 |
print(ORDER_LIST_LDEK_EN)
|
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
3 |
+
from ..styles import highlight_color
|
4 |
|
5 |
abs_path = Path(__file__).parent.parent.parent
|
6 |
|
|
|
65 |
ORDER_LIST_LDEK, DATA_TYPES_LDEK = generate_ORDER_LIST_LDEK_and_data_types(sample_data)
|
66 |
LDEK_ACCS = load_json_data(file_path, ORDER_LIST_LDEK)
|
67 |
LDEK_ACCS = LDEK_ACCS.style.highlight_max(
|
68 |
+
color = highlight_color,
|
69 |
subset=LDEK_ACCS.columns[1:]).format(precision=2)
|
70 |
COLUMN_HEADERS_LDEK = ORDER_LIST_LDEK
|
71 |
print(ORDER_LIST_LDEK)
|
|
|
77 |
ORDER_LIST_LDEK_EN, DATA_TYPES_LDEK_EN = generate_ORDER_LIST_LDEK_and_data_types(sample_data2)
|
78 |
LDEK_EN_ACCS = load_json_data(file_path2, ORDER_LIST_LDEK_EN)
|
79 |
LDEK_EN_ACCS = LDEK_EN_ACCS.style.highlight_max(
|
80 |
+
color = highlight_color,
|
81 |
subset=LDEK_EN_ACCS.columns[1:]).format(precision=2)
|
82 |
COLUMN_HEADERS_LDEK_EN = ORDER_LIST_LDEK_EN
|
83 |
print(ORDER_LIST_LDEK_EN)
|
src/structures/lek_structure.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
|
|
3 |
|
4 |
abs_path = Path(__file__).parent.parent.parent
|
5 |
|
@@ -63,7 +64,7 @@ with open(file_path, 'r', encoding='utf-8') as file:
|
|
63 |
ORDER_LIST_LEK, DATA_TYPES_LEK = generate_ORDER_LIST_LEK_and_data_types(sample_data)
|
64 |
LEK_ACCS = load_json_data(file_path, ORDER_LIST_LEK)
|
65 |
LEK_ACCS = LEK_ACCS.style.highlight_max(
|
66 |
-
color =
|
67 |
subset=LEK_ACCS.columns[1:]).format(precision=2)
|
68 |
COLUMN_HEADERS_LEK = ORDER_LIST_LEK
|
69 |
|
@@ -75,6 +76,6 @@ with open(file_path, 'r', encoding='utf-8') as file:
|
|
75 |
ORDER_LIST_LEK_EN, DATA_TYPES_LEK_EN = generate_ORDER_LIST_LEK_and_data_types(sample_data)
|
76 |
LEK_ACCS_EN = load_json_data(file_path, ORDER_LIST_LEK_EN)
|
77 |
LEK_ACCS_EN = LEK_ACCS_EN.style.highlight_max(
|
78 |
-
color =
|
79 |
subset=LEK_ACCS_EN.columns[1:]).format(precision=2)
|
80 |
COLUMN_HEADERS_LEK_EN = ORDER_LIST_LEK_EN
|
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
3 |
+
from ..styles import highlight_color
|
4 |
|
5 |
abs_path = Path(__file__).parent.parent.parent
|
6 |
|
|
|
64 |
ORDER_LIST_LEK, DATA_TYPES_LEK = generate_ORDER_LIST_LEK_and_data_types(sample_data)
|
65 |
LEK_ACCS = load_json_data(file_path, ORDER_LIST_LEK)
|
66 |
LEK_ACCS = LEK_ACCS.style.highlight_max(
|
67 |
+
color = highlight_color,
|
68 |
subset=LEK_ACCS.columns[1:]).format(precision=2)
|
69 |
COLUMN_HEADERS_LEK = ORDER_LIST_LEK
|
70 |
|
|
|
76 |
ORDER_LIST_LEK_EN, DATA_TYPES_LEK_EN = generate_ORDER_LIST_LEK_and_data_types(sample_data)
|
77 |
LEK_ACCS_EN = load_json_data(file_path, ORDER_LIST_LEK_EN)
|
78 |
LEK_ACCS_EN = LEK_ACCS_EN.style.highlight_max(
|
79 |
+
color = highlight_color,
|
80 |
subset=LEK_ACCS_EN.columns[1:]).format(precision=2)
|
81 |
COLUMN_HEADERS_LEK_EN = ORDER_LIST_LEK_EN
|
src/structures/pes_structure.py
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
|
|
|
|
3 |
|
4 |
abs_path = Path(__file__).parent.parent.parent
|
5 |
|
|
|
1 |
import pandas as pd
|
2 |
from pathlib import Path
|
3 |
+
from ..styles import highlight_color
|
4 |
+
|
5 |
|
6 |
abs_path = Path(__file__).parent.parent.parent
|
7 |
|
src/styles.py
CHANGED
@@ -178,3 +178,6 @@ polygon_svg = """
|
|
178 |
</svg>
|
179 |
</a>
|
180 |
"""
|
|
|
|
|
|
|
|
178 |
</svg>
|
179 |
</a>
|
180 |
"""
|
181 |
+
|
182 |
+
|
183 |
+
highlight_color = '#16a110'
|