Commit
•
a0691fa
1
Parent(s):
e2e6875
Use pandas Styler
Browse files
app.py
CHANGED
@@ -109,21 +109,29 @@ def filter_configs(df):
|
|
109 |
|
110 |
def concat_result_1(result_1, results):
|
111 |
results = pd.read_html(io.StringIO(results))[0]
|
112 |
-
|
113 |
pd.concat([result_1, results.iloc[:, [0, 2]].set_index("Parameters")], axis=1)
|
114 |
.reset_index()
|
115 |
-
|
116 |
-
|
|
|
|
|
|
|
|
|
117 |
)
|
118 |
|
119 |
|
120 |
def concat_result_2(result_2, results):
|
121 |
results = pd.read_html(io.StringIO(results))[0]
|
122 |
-
|
123 |
pd.concat([results.iloc[:, [0, 1]].set_index("Parameters"), result_2], axis=1)
|
124 |
.reset_index()
|
125 |
-
|
126 |
-
|
|
|
|
|
|
|
|
|
127 |
)
|
128 |
|
129 |
|
|
|
109 |
|
110 |
def concat_result_1(result_1, results):
|
111 |
results = pd.read_html(io.StringIO(results))[0]
|
112 |
+
df = (
|
113 |
pd.concat([result_1, results.iloc[:, [0, 2]].set_index("Parameters")], axis=1)
|
114 |
.reset_index()
|
115 |
+
)
|
116 |
+
return (
|
117 |
+
df.style
|
118 |
+
.format(na_rep="")
|
119 |
+
.hide(axis="index")
|
120 |
+
.to_html()
|
121 |
)
|
122 |
|
123 |
|
124 |
def concat_result_2(result_2, results):
|
125 |
results = pd.read_html(io.StringIO(results))[0]
|
126 |
+
df = (
|
127 |
pd.concat([results.iloc[:, [0, 1]].set_index("Parameters"), result_2], axis=1)
|
128 |
.reset_index()
|
129 |
+
)
|
130 |
+
return (
|
131 |
+
df.style
|
132 |
+
.format(na_rep="")
|
133 |
+
.hide(axis="index")
|
134 |
+
.to_html()
|
135 |
)
|
136 |
|
137 |
|