Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,6 +50,7 @@ def init_baselines():
|
|
50 |
raw_display = raw_display[1:]
|
51 |
raw_display = raw_display.reset_index(drop=True)
|
52 |
trend_table = raw_display[raw_display['PLAYER_NAME'] != ""]
|
|
|
53 |
trend_table = trend_table[['PLAYER_NAME', 'Team', 'Position', 'FD_Position', 'L10 MIN', 'L10 Fantasy', 'L10 Ceiling', 'L10 FD_Fantasy',
|
54 |
'L10 FD_Ceiling', 'L5 MIN', 'L5 Fantasy', 'L5 Ceiling', 'L5 FD_Fantasy', 'L5 FD_Ceiling', 'L3 MIN', 'L3 Fantasy',
|
55 |
'L3 Ceiling', 'L3 FD_Fantasy', 'L3 FD_Ceiling', 'Trend Min', 'Trend Median', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
|
@@ -124,7 +125,7 @@ with col1:
|
|
124 |
proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')
|
125 |
|
126 |
elif split_var1 == 'Minutes Trends':
|
127 |
-
|
128 |
split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
|
129 |
|
130 |
if split_var2 == 'Specific Teams':
|
|
|
50 |
raw_display = raw_display[1:]
|
51 |
raw_display = raw_display.reset_index(drop=True)
|
52 |
trend_table = raw_display[raw_display['PLAYER_NAME'] != ""]
|
53 |
+
trend_table.replace('', np.nan, inplace=True)
|
54 |
trend_table = trend_table[['PLAYER_NAME', 'Team', 'Position', 'FD_Position', 'L10 MIN', 'L10 Fantasy', 'L10 Ceiling', 'L10 FD_Fantasy',
|
55 |
'L10 FD_Ceiling', 'L5 MIN', 'L5 Fantasy', 'L5 Ceiling', 'L5 FD_Fantasy', 'L5 FD_Ceiling', 'L3 MIN', 'L3 Fantasy',
|
56 |
'L3 Ceiling', 'L3 FD_Fantasy', 'L3 FD_Ceiling', 'Trend Min', 'Trend Median', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
|
|
|
125 |
proj_var1 = st.slider("Is there a certain projection range you want to view?", 0, 100, (10, 100), key='proj_var1')
|
126 |
|
127 |
elif split_var1 == 'Minutes Trends':
|
128 |
+
view_var1 = trend_table.Team.values.tolist()
|
129 |
split_var2 = st.radio("Would you like to view all teams or specific ones?", ('All', 'Specific Teams'), key='split_var2')
|
130 |
|
131 |
if split_var2 == 'Specific Teams':
|