Spaces:
Running
Running
James McCool
commited on
Commit
·
e091f4e
1
Parent(s):
8912250
Comment out redundant player index setting in app.py to prevent potential errors during data display. This change maintains the existing functionality while improving error handling in the data presentation logic.
Browse files
app.py
CHANGED
@@ -508,7 +508,7 @@ with tab2:
|
|
508 |
player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
509 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
|
510 |
except:
|
511 |
-
player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
512 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
|
513 |
|
514 |
with tab3:
|
|
|
508 |
player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
509 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
|
510 |
except:
|
511 |
+
# player_roo_disp = player_roo_disp.set_index('Player', drop=True)
|
512 |
st.dataframe(player_roo_disp.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').background_gradient(cmap='RdYlGn_r', subset=['Order', 'Salary', 'Own%', 'Small Field Own%', 'Large Field Own%', 'Cash Own%']).format(player_roo_format, precision=2), height=750, use_container_width = True)
|
513 |
|
514 |
with tab3:
|