Spaces:
Build error
Build error
James McCool
commited on
Commit
·
6dac0fa
1
Parent(s):
5c6dd71
fixed axis
Browse files
app.py
CHANGED
|
@@ -89,18 +89,18 @@ with col1:
|
|
| 89 |
split_var1 = st.radio("What table would you like to view?", ('Minutes Trends', 'Fantasy Trends', 'FPPM Trends', 'Slate specific', 'Overall'), key='split_var1')
|
| 90 |
site_var1 = st.radio("What site would you like to view?", ('Draftkings', 'Fanduel'), key='site_var1')
|
| 91 |
if site_var1 == 'Draftkings':
|
| 92 |
-
trend_table = trend_table[['PLAYER_NAME', 'Team', 'Position', 'L10 MIN', 'L10 Fantasy', 'L10 Ceiling',
|
| 93 |
-
'L5 MIN', 'L5 Fantasy', 'L5 Ceiling', 'L3 MIN', 'L3 Fantasy',
|
| 94 |
-
'L3 Ceiling', 'Trend Min', 'Trend Median', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
|
| 95 |
'DK_Salary', 'DK_Avg_Val', 'DK_Ceiling_Value']]
|
| 96 |
minutes_table = dk_minutes_table
|
| 97 |
medians_table = dk_medians_table
|
| 98 |
fppm_table = dk_fppm_table
|
| 99 |
proj_medians_table = dk_proj_medians_table
|
| 100 |
elif site_var1 == 'Fanduel':
|
| 101 |
-
trend_table = trend_table[['PLAYER_NAME', 'Team', 'FD_Position', 'L10 MIN', 'L10 FD_Fantasy',
|
| 102 |
-
'
|
| 103 |
-
'
|
| 104 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
|
| 105 |
minutes_table = fd_minutes_table
|
| 106 |
medians_table = fd_medians_table
|
|
@@ -108,7 +108,7 @@ with col1:
|
|
| 108 |
proj_medians_table = fd_proj_medians_table
|
| 109 |
trend_table = trend_table.set_axis(['PLAYER_NAME', 'Team', 'Position', 'L10 MIN', 'L10 Fantasy', 'L10 FPPM', 'L10 Ceiling',
|
| 110 |
'L5 MIN', 'L5 Fantasy', 'L5 FPPM', 'L5 Ceiling', 'L3 MIN', 'L3 Fantasy',
|
| 111 |
-
'L3 FPPM', 'L3 Ceiling', 'Trend Min', 'Trend Median', 'FD_Proj', 'Adj FD_Median', 'Adj FD_Ceiling',
|
| 112 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value'], axis=1)
|
| 113 |
minutes_table = minutes_table.set_axis(['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min'], axis=1)
|
| 114 |
medians_table = medians_table.set_axis(['PLAYER_NAME', 'Team', 'L10 Fantasy','L5 Fantasy', 'L3 Fantasy', 'Trend Median'], axis=1)
|
|
|
|
| 89 |
split_var1 = st.radio("What table would you like to view?", ('Minutes Trends', 'Fantasy Trends', 'FPPM Trends', 'Slate specific', 'Overall'), key='split_var1')
|
| 90 |
site_var1 = st.radio("What site would you like to view?", ('Draftkings', 'Fanduel'), key='site_var1')
|
| 91 |
if site_var1 == 'Draftkings':
|
| 92 |
+
trend_table = trend_table[['PLAYER_NAME', 'Team', 'Position', 'L10 MIN', 'L10 Fantasy', 'L10 FPPM', 'L10 Ceiling',
|
| 93 |
+
'L5 MIN', 'L5 Fantasy', 'L5 FPPM', 'L5 Ceiling', 'L3 MIN', 'L3 Fantasy',
|
| 94 |
+
'L3 FPPM', 'L3 Ceiling', 'Trend Min', 'Trend Median', 'Trend FPPM', 'DK_Proj', 'Adj Median', 'Adj Ceiling',
|
| 95 |
'DK_Salary', 'DK_Avg_Val', 'DK_Ceiling_Value']]
|
| 96 |
minutes_table = dk_minutes_table
|
| 97 |
medians_table = dk_medians_table
|
| 98 |
fppm_table = dk_fppm_table
|
| 99 |
proj_medians_table = dk_proj_medians_table
|
| 100 |
elif site_var1 == 'Fanduel':
|
| 101 |
+
trend_table = trend_table[['PLAYER_NAME', 'Team', 'FD_Position', 'L10 MIN', 'L10 FD_Fantasy', 'L10 FPPM', 'L10 FD_Ceiling',
|
| 102 |
+
'L5 MIN', 'L5 FD_Fantasy', 'L5 FPPM', 'L5 FD_Ceiling', 'L3 MIN', 'L3 FD_Fantasy', 'L3 FPPM', 'L3 FD_Ceiling',
|
| 103 |
+
'Trend Min', 'Trend FD_Median', 'Trend FPPM', 'FD_Proj', 'Adj FD_Median', 'Adj FD_Ceiling',
|
| 104 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value']]
|
| 105 |
minutes_table = fd_minutes_table
|
| 106 |
medians_table = fd_medians_table
|
|
|
|
| 108 |
proj_medians_table = fd_proj_medians_table
|
| 109 |
trend_table = trend_table.set_axis(['PLAYER_NAME', 'Team', 'Position', 'L10 MIN', 'L10 Fantasy', 'L10 FPPM', 'L10 Ceiling',
|
| 110 |
'L5 MIN', 'L5 Fantasy', 'L5 FPPM', 'L5 Ceiling', 'L3 MIN', 'L3 Fantasy',
|
| 111 |
+
'L3 FPPM', 'L3 Ceiling', 'Trend Min', 'Trend Median', 'Trend FPPM', 'FD_Proj', 'Adj FD_Median', 'Adj FD_Ceiling',
|
| 112 |
'FD_Salary', 'FD_Avg_Val', 'FD_Ceiling_Value'], axis=1)
|
| 113 |
minutes_table = minutes_table.set_axis(['PLAYER_NAME', 'Team', 'L10 MIN', 'L5 MIN', 'L3 MIN', 'Trend Min'], axis=1)
|
| 114 |
medians_table = medians_table.set_axis(['PLAYER_NAME', 'Team', 'L10 Fantasy','L5 Fantasy', 'L3 Fantasy', 'Trend Median'], axis=1)
|