Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
9a17dab
1
Parent(s):
cf9d108
Update app.py to convert unique player list to a list format for improved tab creation. This change enhances the functionality of player-specific tabs, ensuring compatibility with the Streamlit framework and improving user experience in navigating player statistics.
Browse files
app.py
CHANGED
|
@@ -352,7 +352,7 @@ if st.button("Run"):
|
|
| 352 |
with tab2:
|
| 353 |
st.dataframe(opp_boost.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 354 |
|
| 355 |
-
unique_players = sim_df['Player'].unique()
|
| 356 |
player_tabs = st.tabs(unique_players)
|
| 357 |
|
| 358 |
for player, tab in zip(unique_players, player_tabs):
|
|
|
|
| 352 |
with tab2:
|
| 353 |
st.dataframe(opp_boost.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(precision=2), use_container_width = True)
|
| 354 |
|
| 355 |
+
unique_players = sim_df['Player'].unique().tolist()
|
| 356 |
player_tabs = st.tabs(unique_players)
|
| 357 |
|
| 358 |
for player, tab in zip(unique_players, player_tabs):
|