James McCool commited on
Commit
37aa874
·
1 Parent(s): b31d7a5

Modify DataFrame styling with color and alignment properties

Browse files

- Replace table styles with set_properties method
- Set table cell color to white
- Align table data to the right
- Simplify DataFrame styling approach

Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -192,10 +192,7 @@ with tab1:
192
  .background_gradient(axis=0)
193
  .background_gradient(cmap='RdYlGn')
194
  .format(player_roo_format, precision=2)
195
- .set_table_styles([
196
- {'selector': 'td', 'props': [('font-size', '14px')]},
197
- {'selector': 'th', 'props': [('font-size', '15px')]}
198
- ]), height=750, use_container_width = True)
199
  elif view_var == "Advanced":
200
  display = display
201
  display = display.set_index('Player')
 
192
  .background_gradient(axis=0)
193
  .background_gradient(cmap='RdYlGn')
194
  .format(player_roo_format, precision=2)
195
+ .set_properties(color="white", align="right"), height=750, use_container_width = True)
 
 
 
196
  elif view_var == "Advanced":
197
  display = display
198
  display = display.set_index('Player')