James McCool commited on
Commit
5a83748
·
1 Parent(s): ad9faf9

Add table display for NASCAR portfolios in app.py to enhance data visibility for NASCAR users.

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -130,6 +130,8 @@ with tab1:
130
  st.success('Portfolio file loaded successfully!')
131
  st.session_state['portfolio'] = st.session_state['portfolio'].apply(lambda x: x.replace(player_wrong_names_mlb, player_right_names_mlb))
132
  st.dataframe(st.session_state['portfolio'].head(10))
 
 
133
 
134
  with col3:
135
  st.subheader("Projections File")
 
130
  st.success('Portfolio file loaded successfully!')
131
  st.session_state['portfolio'] = st.session_state['portfolio'].apply(lambda x: x.replace(player_wrong_names_mlb, player_right_names_mlb))
132
  st.dataframe(st.session_state['portfolio'].head(10))
133
+ if sport_var == 'NASCAR':
134
+ st.table(st.session_state['portfolio'].head(500))
135
 
136
  with col3:
137
  st.subheader("Projections File")