Spaces:
Running
Running
James McCool
commited on
Commit
·
3ddd3e4
1
Parent(s):
a67075a
Modify view options and remove debug print statements in lineup initialization
Browse files
app.py
CHANGED
@@ -136,7 +136,6 @@ def init_DK_lineups():
|
|
136 |
raw_display = pd.DataFrame(list(cursor))
|
137 |
raw_display = raw_display[['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
138 |
dict_columns = ['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX']
|
139 |
-
st.write("converting names")
|
140 |
for col in dict_columns:
|
141 |
raw_display[col] = raw_display[col].map(names_dict)
|
142 |
DK_seed = raw_display.to_numpy()
|
@@ -157,7 +156,6 @@ def init_FD_lineups():
|
|
157 |
raw_display = pd.DataFrame(list(cursor))
|
158 |
raw_display = raw_display[['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
159 |
dict_columns = ['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1']
|
160 |
-
st.write("converting names")
|
161 |
for col in dict_columns:
|
162 |
raw_display[col] = raw_display[col].map(names_dict)
|
163 |
FD_seed = raw_display.to_numpy()
|
@@ -294,7 +292,7 @@ with tab1:
|
|
294 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
295 |
for key in st.session_state.keys():
|
296 |
del st.session_state[key]
|
297 |
-
view_var2 = st.radio("What view would you like to display?", ('
|
298 |
st.info("Advanced view includes all stats and thresholds, simple includes just basic columns for ease of use on mobile")
|
299 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
300 |
if site_var2 == 'Draftkings':
|
|
|
136 |
raw_display = pd.DataFrame(list(cursor))
|
137 |
raw_display = raw_display[['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
138 |
dict_columns = ['PG', 'SG', 'SF', 'PF', 'C', 'G', 'F', 'FLEX']
|
|
|
139 |
for col in dict_columns:
|
140 |
raw_display[col] = raw_display[col].map(names_dict)
|
141 |
DK_seed = raw_display.to_numpy()
|
|
|
156 |
raw_display = pd.DataFrame(list(cursor))
|
157 |
raw_display = raw_display[['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1', 'salary', 'proj', 'Team', 'Team_count', 'Secondary', 'Secondary_count', 'Own']]
|
158 |
dict_columns = ['PG1', 'PG2', 'SG1', 'SG2', 'SF1', 'SF2', 'PF1', 'PF2', 'C1']
|
|
|
159 |
for col in dict_columns:
|
160 |
raw_display[col] = raw_display[col].map(names_dict)
|
161 |
FD_seed = raw_display.to_numpy()
|
|
|
292 |
t_stamp = f"Last Update: " + str(timestamp) + f" CST"
|
293 |
for key in st.session_state.keys():
|
294 |
del st.session_state[key]
|
295 |
+
view_var2 = st.radio("What view would you like to display?", ('Simple', 'Advanced'), key='view_var2')
|
296 |
st.info("Advanced view includes all stats and thresholds, simple includes just basic columns for ease of use on mobile")
|
297 |
site_var2 = st.radio("What table would you like to display?", ('Draftkings', 'Fanduel'), key='site_var2')
|
298 |
if site_var2 == 'Draftkings':
|