Spaces:
Sleeping
Sleeping
make table pretty v3
Browse files
app.py
CHANGED
@@ -440,11 +440,11 @@ if st.button('🤖 Run it'):
|
|
440 |
score_fmt = f'{score:.1%}'
|
441 |
|
442 |
results = pd.DataFrame(index=[
|
443 |
-
'ModelScore'
|
444 |
'HistoricalRate'
|
445 |
f'Num {operator} {"" if do_not_play else score_fmt}',
|
446 |
], data = [
|
447 |
-
f'{text_cond} {score:.1%}'
|
448 |
f'{text_cond} {historical_proba:.1%}',
|
449 |
num_obs
|
450 |
])
|
|
|
440 |
score_fmt = f'{score:.1%}'
|
441 |
|
442 |
results = pd.DataFrame(index=[
|
443 |
+
'ModelScore',
|
444 |
'HistoricalRate'
|
445 |
f'Num {operator} {"" if do_not_play else score_fmt}',
|
446 |
], data = [
|
447 |
+
f'{text_cond} {score:.1%}' ,
|
448 |
f'{text_cond} {historical_proba:.1%}',
|
449 |
num_obs
|
450 |
])
|