Spaces:
Sleeping
Sleeping
make table readable v1
Browse files
app.py
CHANGED
@@ -424,7 +424,6 @@ if st.button('π€ Run it'):
|
|
424 |
historical_proba = res1.loc[cond, 'True'].mean()
|
425 |
# print(cond)
|
426 |
|
427 |
-
|
428 |
elif green_proba <= red_proba:
|
429 |
# If the day is predicted to be green, say so
|
430 |
text_cond = 'π₯'
|
@@ -440,12 +439,12 @@ if st.button('π€ Run it'):
|
|
440 |
score_fmt = f'{score:.1%}'
|
441 |
|
442 |
results = pd.DataFrame(index=[
|
443 |
-
'
|
444 |
-
'
|
445 |
-
f'
|
446 |
], data = [
|
447 |
f'{text_cond} {score:.1%}',
|
448 |
-
f'{
|
449 |
num_obs
|
450 |
])
|
451 |
|
|
|
424 |
historical_proba = res1.loc[cond, 'True'].mean()
|
425 |
# print(cond)
|
426 |
|
|
|
427 |
elif green_proba <= red_proba:
|
428 |
# If the day is predicted to be green, say so
|
429 |
text_cond = 'π₯'
|
|
|
439 |
score_fmt = f'{score:.1%}'
|
440 |
|
441 |
results = pd.DataFrame(index=[
|
442 |
+
'Confidence Score',
|
443 |
+
'Success Rate',
|
444 |
+
f'NumObs {operator} {"" if do_not_play else score_fmt}'
|
445 |
], data = [
|
446 |
f'{text_cond} {score:.1%}',
|
447 |
+
f'{historical_proba:.1%}',
|
448 |
num_obs
|
449 |
])
|
450 |
|