Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -341,6 +341,8 @@ with tab1:
|
|
| 341 |
# Data Copying
|
| 342 |
st.session_state.Sim_Winner_Display = Sim_Winner_Frame.copy()
|
| 343 |
freq_copy = st.session_state.Sim_Winner_Display
|
|
|
|
|
|
|
| 344 |
|
| 345 |
if sim_site_var1 == 'Draftkings':
|
| 346 |
freq_working = pd.DataFrame(np.column_stack(np.unique(freq_copy.iloc[:,0:6].values, return_counts=True)),
|
|
@@ -413,12 +415,12 @@ with tab1:
|
|
| 413 |
st.download_button(
|
| 414 |
label="Export Full Frame",
|
| 415 |
data=st.session_state.Sim_Winner_Export.to_csv().encode('utf-8'),
|
| 416 |
-
file_name='
|
| 417 |
mime='text/csv',
|
| 418 |
)
|
| 419 |
|
| 420 |
with st.container():
|
| 421 |
-
tab1, tab2, tab3, tab4 = st.tabs(['Overall Exposures', '
|
| 422 |
with tab1:
|
| 423 |
if 'player_freq' in st.session_state:
|
| 424 |
|
|
|
|
| 341 |
# Data Copying
|
| 342 |
st.session_state.Sim_Winner_Display = Sim_Winner_Frame.copy()
|
| 343 |
freq_copy = st.session_state.Sim_Winner_Display
|
| 344 |
+
|
| 345 |
+
st.table(freq_copy)
|
| 346 |
|
| 347 |
if sim_site_var1 == 'Draftkings':
|
| 348 |
freq_working = pd.DataFrame(np.column_stack(np.unique(freq_copy.iloc[:,0:6].values, return_counts=True)),
|
|
|
|
| 415 |
st.download_button(
|
| 416 |
label="Export Full Frame",
|
| 417 |
data=st.session_state.Sim_Winner_Export.to_csv().encode('utf-8'),
|
| 418 |
+
file_name='NFL_SD_consim_export.csv',
|
| 419 |
mime='text/csv',
|
| 420 |
)
|
| 421 |
|
| 422 |
with st.container():
|
| 423 |
+
tab1, tab2, tab3, tab4 = st.tabs(['Overall Exposures', 'CPT Exposures', 'Team Exposures', 'Stack Size Exposures'])
|
| 424 |
with tab1:
|
| 425 |
if 'player_freq' in st.session_state:
|
| 426 |
|