Spaces:
Running
Running
James McCool
commited on
Commit
·
1e3bf64
1
Parent(s):
a4564c8
Reorder columns in player display for improved clarity, placing 'Position' and 'Team' at the end of the dataframe. This adjustment enhances the readability of player statistics in the UI.
Browse files
app.py
CHANGED
@@ -400,7 +400,7 @@ with tab2:
|
|
400 |
|
401 |
if view_var == "Simple":
|
402 |
try:
|
403 |
-
player_roo_disp = player_roo_disp[['Player', '
|
404 |
player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
405 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), height=750, use_container_width = True)
|
406 |
except:
|
|
|
400 |
|
401 |
if view_var == "Simple":
|
402 |
try:
|
403 |
+
player_roo_disp = player_roo_disp[['Player', 'Salary', 'Median', 'Ceiling', 'Own%', 'Position', 'Team']]
|
404 |
player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
405 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(player_roo_format, precision=2), height=750, use_container_width = True)
|
406 |
except:
|