Spaces:
Runtime error
Runtime error
Yotam-Perlitz
commited on
Commit
·
3ce2cf9
1
Parent(s):
282d506
add date instead of source
Browse filesSigned-off-by: Yotam-Perlitz <y.perlitz@ibm.com>
app.py
CHANGED
|
@@ -422,7 +422,7 @@ z_scores["corr_with_agg"] = z_scores["corr_with_agg"].round(2)
|
|
| 422 |
z_scores["p_value_of_corr_with_agg"] = z_scores["p_value_of_corr_with_agg"].round(2)
|
| 423 |
# z_scores["n_models_of_corr_with_agg"] = z_scores["n_models_of_corr_with_agg"].round(1)
|
| 424 |
|
| 425 |
-
z_scores["
|
| 426 |
|
| 427 |
# print(z_scores["scenario"].unique().tolist())
|
| 428 |
|
|
@@ -437,6 +437,7 @@ data = (
|
|
| 437 |
"p_value_of_corr_with_agg": "p-value of Corr.",
|
| 438 |
# "n_models_of_corr_with_agg": "# Models Used",
|
| 439 |
"source": "Source",
|
|
|
|
| 440 |
}
|
| 441 |
)
|
| 442 |
.sort_values("Z Score", ascending=False)
|
|
@@ -469,10 +470,17 @@ styled_data = (
|
|
| 469 |
.format(subset=["Z Score", corr_name, "p-value of Corr."], formatter="{:.2}")
|
| 470 |
)
|
| 471 |
|
| 472 |
-
print(data["Benchmark"].unique().tolist())
|
| 473 |
|
| 474 |
st.dataframe(
|
| 475 |
data=styled_data,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 476 |
hide_index=True,
|
| 477 |
use_container_width=True,
|
| 478 |
height=500,
|
|
|
|
| 422 |
z_scores["p_value_of_corr_with_agg"] = z_scores["p_value_of_corr_with_agg"].round(2)
|
| 423 |
# z_scores["n_models_of_corr_with_agg"] = z_scores["n_models_of_corr_with_agg"].round(1)
|
| 424 |
|
| 425 |
+
z_scores["date"] = z_scores["source"].apply(lambda x: x.split(".csv")[0].split("_")[-1])
|
| 426 |
|
| 427 |
# print(z_scores["scenario"].unique().tolist())
|
| 428 |
|
|
|
|
| 437 |
"p_value_of_corr_with_agg": "p-value of Corr.",
|
| 438 |
# "n_models_of_corr_with_agg": "# Models Used",
|
| 439 |
"source": "Source",
|
| 440 |
+
"date": "Snapshot Date",
|
| 441 |
}
|
| 442 |
)
|
| 443 |
.sort_values("Z Score", ascending=False)
|
|
|
|
| 470 |
.format(subset=["Z Score", corr_name, "p-value of Corr."], formatter="{:.2}")
|
| 471 |
)
|
| 472 |
|
| 473 |
+
# print(data["Benchmark"].unique().tolist())
|
| 474 |
|
| 475 |
st.dataframe(
|
| 476 |
data=styled_data,
|
| 477 |
+
column_order=[
|
| 478 |
+
"Benchmark",
|
| 479 |
+
"Z Score",
|
| 480 |
+
corr_name,
|
| 481 |
+
"p-value of Corr.",
|
| 482 |
+
"Snapshot Date",
|
| 483 |
+
],
|
| 484 |
hide_index=True,
|
| 485 |
use_container_width=True,
|
| 486 |
height=500,
|