Multichem commited on
Commit
5ec49bd
·
1 Parent(s): 98c4e33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -56,6 +56,7 @@ def init_baselines():
56
  'L3 Ceiling', 'L3 FD_Fantasy', 'L3 FD_Ceiling', 'Trend Min', 'Trend Median', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
57
  'Trend FD_Median', 'FD_Proj', 'Adj FD_Median', 'Adj FD_Ceiling', 'DK_Salary', 'DK_Avg_Val', 'DK_Ceiling_Value',
58
  'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
 
59
 
60
  dk_minutes_table = trend_table[['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min']]
61
 
@@ -142,7 +143,7 @@ with col1:
142
  elif split_var2 == 'All':
143
  team_var1 = view_var1
144
 
145
- elif split_var1 == 'Slate Specific':
146
  view_var1 = trend_table.Team.values.tolist()
147
  split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
148
 
 
56
  'L3 Ceiling', 'L3 FD_Fantasy', 'L3 FD_Ceiling', 'Trend Min', 'Trend Median', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
57
  'Trend FD_Median', 'FD_Proj', 'Adj FD_Median', 'Adj FD_Ceiling', 'DK_Salary', 'DK_Avg_Val', 'DK_Ceiling_Value',
58
  'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
59
+ trend_table.iloc[:,4:] = trend_table.iloc[:,4:].apply(pd.to_numeric)
60
 
61
  dk_minutes_table = trend_table[['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min']]
62
 
 
143
  elif split_var2 == 'All':
144
  team_var1 = view_var1
145
 
146
+ elif split_var1 == 'Slate specific':
147
  view_var1 = trend_table.Team.values.tolist()
148
  split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
149