Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -374,7 +374,7 @@ def server(input, output, session):
|
|
374 |
|
375 |
},{'selector' :'th', 'props':[('text-align', 'center'),('Height','px'),('color','black'),(
|
376 |
'border', '1px black solid !important')]},{'selector' :'td', 'props':[('text-align', 'center'),('font-size', '18px'),('color','black')]}],overwrite=False).set_properties(
|
377 |
-
**{'background-color':'White','index':'White','min-width':'
|
378 |
[{'selector': 'th:first-child', 'props': [('background-color', 'white')]}],overwrite=False).set_table_styles(
|
379 |
[{'selector': 'tr:first-child', 'props': [('background-color', 'white')]}],overwrite=False).set_table_styles(
|
380 |
[{'selector': 'tr', 'props': [('line-height', '20px')]}],overwrite=False).set_properties(
|
@@ -387,7 +387,7 @@ def server(input, output, session):
|
|
387 |
'L'+str(n_2)+' PP%': '{:.0%}',
|
388 |
'L'+str(n_3)+' PP%': '{:.0%}',
|
389 |
'Roster%': '{:.0%}',
|
390 |
-
},).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]+['Roster%'])
|
391 |
|
392 |
return df_style_bang
|
393 |
|
|
|
374 |
|
375 |
},{'selector' :'th', 'props':[('text-align', 'center'),('Height','px'),('color','black'),(
|
376 |
'border', '1px black solid !important')]},{'selector' :'td', 'props':[('text-align', 'center'),('font-size', '18px'),('color','black')]}],overwrite=False).set_properties(
|
377 |
+
**{'background-color':'White','index':'White','min-width':'60px'},overwrite=False).set_table_styles(
|
378 |
[{'selector': 'th:first-child', 'props': [('background-color', 'white')]}],overwrite=False).set_table_styles(
|
379 |
[{'selector': 'tr:first-child', 'props': [('background-color', 'white')]}],overwrite=False).set_table_styles(
|
380 |
[{'selector': 'tr', 'props': [('line-height', '20px')]}],overwrite=False).set_properties(
|
|
|
387 |
'L'+str(n_2)+' PP%': '{:.0%}',
|
388 |
'L'+str(n_3)+' PP%': '{:.0%}',
|
389 |
'Roster%': '{:.0%}',
|
390 |
+
},).background_gradient(cmap=co, subset=[x for x in cols if x.endswith('PP%')]+['Roster%']).hide_index()
|
391 |
|
392 |
return df_style_bang
|
393 |
|