Spaces:
Sleeping
Sleeping
James McCool commited on
Commit ·
8919c13
1
Parent(s): 34d5cbf
removing the timestamp
Browse files- src/streamlit_app.py +3 -5
src/streamlit_app.py
CHANGED
|
@@ -172,7 +172,7 @@ def convert_pm_df(array):
|
|
| 172 |
array[col] = array[col].apply(normalize_special_characters)
|
| 173 |
return array.to_csv(index=False).encode('utf-8')
|
| 174 |
|
| 175 |
-
roo_data, sd_roo_data
|
| 176 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 177 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 178 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
@@ -183,7 +183,7 @@ app_load_reset_column, app_view_site_column = st.columns([1, 9])
|
|
| 183 |
with app_load_reset_column:
|
| 184 |
if st.button("Load/Reset Data", key='reset_data_button'):
|
| 185 |
st.cache_data.clear()
|
| 186 |
-
roo_data, sd_roo_data
|
| 187 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 188 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 189 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
@@ -215,7 +215,7 @@ if selected_tab == "Player ROO":
|
|
| 215 |
with st.expander("Info and Filters"):
|
| 216 |
if st.button("Reset Data", key='reset1'):
|
| 217 |
st.cache_data.clear()
|
| 218 |
-
roo_data, sd_roo_data
|
| 219 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 220 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 221 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
@@ -225,8 +225,6 @@ if selected_tab == "Player ROO":
|
|
| 225 |
hold_display = roo_data
|
| 226 |
for key in st.session_state.keys():
|
| 227 |
del st.session_state[key]
|
| 228 |
-
|
| 229 |
-
st.write(timestamp)
|
| 230 |
|
| 231 |
type_var = st.radio("Select a Type", ["Full Slate", "Showdown"])
|
| 232 |
if type_var == "Full Slate":
|
|
|
|
| 172 |
array[col] = array[col].apply(normalize_special_characters)
|
| 173 |
return array.to_csv(index=False).encode('utf-8')
|
| 174 |
|
| 175 |
+
roo_data, sd_roo_data = init_baselines()
|
| 176 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 177 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 178 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
|
|
| 183 |
with app_load_reset_column:
|
| 184 |
if st.button("Load/Reset Data", key='reset_data_button'):
|
| 185 |
st.cache_data.clear()
|
| 186 |
+
roo_data, sd_roo_data = init_baselines()
|
| 187 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 188 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 189 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
|
|
| 215 |
with st.expander("Info and Filters"):
|
| 216 |
if st.button("Reset Data", key='reset1'):
|
| 217 |
st.cache_data.clear()
|
| 218 |
+
roo_data, sd_roo_data = init_baselines()
|
| 219 |
dk_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Draftkings']['Player'], roo_data[roo_data['Site'] == 'Draftkings']['player_id']))
|
| 220 |
dk_id_dict_sd = dict(zip(sd_roo_data['Player'], sd_roo_data['player_id']))
|
| 221 |
fd_id_dict = dict(zip(roo_data[roo_data['Site'] == 'Fanduel']['Player'], roo_data[roo_data['Site'] == 'Fanduel']['player_id']))
|
|
|
|
| 225 |
hold_display = roo_data
|
| 226 |
for key in st.session_state.keys():
|
| 227 |
del st.session_state[key]
|
|
|
|
|
|
|
| 228 |
|
| 229 |
type_var = st.radio("Select a Type", ["Full Slate", "Showdown"])
|
| 230 |
if type_var == "Full Slate":
|