Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -413,7 +413,7 @@ def server(input, output, session):
|
|
413 |
# 'Roster%': '{:.0%}',
|
414 |
# },)
|
415 |
|
416 |
-
df_style_bang = top_d_score[cols].head(input.top_n()).style.
|
417 |
'selector': 'caption',
|
418 |
'props': [
|
419 |
('color', ''),
|
@@ -440,7 +440,7 @@ def server(input, output, session):
|
|
440 |
'L'+str(n_2)+' PP%': '{:.0%}',
|
441 |
'L'+str(n_3)+' PP%': '{:.0%}',
|
442 |
'Roster%': '{:.0%}',
|
443 |
-
},).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]).hide_index()
|
444 |
|
445 |
return df_style_bang
|
446 |
|
|
|
413 |
# 'Roster%': '{:.0%}',
|
414 |
# },)
|
415 |
|
416 |
+
df_style_bang = top_d_score[cols].head(input.top_n()).style.set_properties(**{'border': '3 px'},overwrite=False).set_table_styles([{
|
417 |
'selector': 'caption',
|
418 |
'props': [
|
419 |
('color', ''),
|
|
|
440 |
'L'+str(n_2)+' PP%': '{:.0%}',
|
441 |
'L'+str(n_3)+' PP%': '{:.0%}',
|
442 |
'Roster%': '{:.0%}',
|
443 |
+
},).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]).hide_index().background_gradient(cmap=co,vmin=0,vmax=1, subset=[x for x in cols if x.endswith('PP%')])
|
444 |
|
445 |
return df_style_bang
|
446 |
|