Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
240c28d
1
Parent(s):
cf5e7cf
Refactor app.py: Correct ownership index references for DraftKings and FanDuel. Updated ownership calculations from index 9 to 8 for both sites, ensuring accurate data processing and consistency in ownership value retrieval.
Browse files
app.py
CHANGED
|
@@ -155,8 +155,8 @@ with tab2:
|
|
| 155 |
raw_baselines = hold_display
|
| 156 |
ROO_slice = raw_baselines[raw_baselines['Site'] == 'Draftkings']
|
| 157 |
# Get the minimum and maximum ownership values from dk_lineups
|
| 158 |
-
min_own = np.min(dk_lineups[:,
|
| 159 |
-
max_own = np.max(dk_lineups[:,
|
| 160 |
column_names = dk_columns
|
| 161 |
|
| 162 |
player_var1 = st.radio("Do you want a frame with specific Players?", ('Full Slate', 'Specific Players'), key='player_var1')
|
|
@@ -168,8 +168,8 @@ with tab2:
|
|
| 168 |
elif site_var1 == 'Fanduel':
|
| 169 |
raw_baselines = hold_display
|
| 170 |
ROO_slice = raw_baselines[raw_baselines['Site'] == 'Fanduel']
|
| 171 |
-
min_own = np.min(fd_lineups[:,
|
| 172 |
-
max_own = np.max(fd_lineups[:,
|
| 173 |
column_names = fd_columns
|
| 174 |
|
| 175 |
player_var1 = st.radio("Do you want a frame with specific Players?", ('Full Slate', 'Specific Players'), key='player_var1')
|
|
|
|
| 155 |
raw_baselines = hold_display
|
| 156 |
ROO_slice = raw_baselines[raw_baselines['Site'] == 'Draftkings']
|
| 157 |
# Get the minimum and maximum ownership values from dk_lineups
|
| 158 |
+
min_own = np.min(dk_lineups[:,8])
|
| 159 |
+
max_own = np.max(dk_lineups[:,8])
|
| 160 |
column_names = dk_columns
|
| 161 |
|
| 162 |
player_var1 = st.radio("Do you want a frame with specific Players?", ('Full Slate', 'Specific Players'), key='player_var1')
|
|
|
|
| 168 |
elif site_var1 == 'Fanduel':
|
| 169 |
raw_baselines = hold_display
|
| 170 |
ROO_slice = raw_baselines[raw_baselines['Site'] == 'Fanduel']
|
| 171 |
+
min_own = np.min(fd_lineups[:,8])
|
| 172 |
+
max_own = np.max(fd_lineups[:,8])
|
| 173 |
column_names = fd_columns
|
| 174 |
|
| 175 |
player_var1 = st.radio("Do you want a frame with specific Players?", ('Full Slate', 'Specific Players'), key='player_var1')
|