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

Modify DataFrame styling alignment and remove precision formatting

Browse files

- Change table cell alignment from right to left
- Remove precision formatting from DataFrame display
- Simplify DataFrame styling approach

Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -191,8 +191,7 @@ with tab1:
191
  st.dataframe(display.style
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')
 
191
  st.dataframe(display.style
192
  .background_gradient(axis=0)
193
  .background_gradient(cmap='RdYlGn')
194
+ .set_properties(color="white", align="left"), height=750, use_container_width = True)
 
195
  elif view_var == "Advanced":
196
  display = display
197
  display = display.set_index('Player')