Spaces:
Running
Running
James McCool
commited on
Commit
·
10fff62
1
Parent(s):
5690a77
cleaned up stat run
Browse files
app.py
CHANGED
@@ -205,11 +205,8 @@ with tab3:
|
|
205 |
for prop in sim_vars:
|
206 |
|
207 |
for books in book_selections:
|
208 |
-
st.write(f'{prop} {books}')
|
209 |
prop_df = prop_df_raw[prop_df_raw['prop_type'] == prop]
|
210 |
-
st.table(prop_df)
|
211 |
prop_df = prop_df[prop_df['book'] == books]
|
212 |
-
st.table(prop_df)
|
213 |
prop_df = prop_df[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
214 |
prop_df.rename(columns={"over_prop": "Prop"}, inplace = True)
|
215 |
prop_df['Over'] = 1 / prop_df['over_line']
|
@@ -300,7 +297,7 @@ with tab3:
|
|
300 |
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes], ignore_index=True)
|
301 |
|
302 |
final_outcomes = sim_all_hold
|
303 |
-
st.write(f'finished {prop}')
|
304 |
|
305 |
elif prop_type_var != 'All Props':
|
306 |
|
@@ -421,7 +418,7 @@ with tab3:
|
|
421 |
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes], ignore_index=True)
|
422 |
|
423 |
final_outcomes = sim_all_hold
|
424 |
-
st.write(f'finished {prop_type_var}')
|
425 |
|
426 |
final_outcomes = final_outcomes[final_outcomes['Prop'] > 0]
|
427 |
if game_select_var == 'Pick6':
|
|
|
205 |
for prop in sim_vars:
|
206 |
|
207 |
for books in book_selections:
|
|
|
208 |
prop_df = prop_df_raw[prop_df_raw['prop_type'] == prop]
|
|
|
209 |
prop_df = prop_df[prop_df['book'] == books]
|
|
|
210 |
prop_df = prop_df[['Player', 'book', 'over_prop', 'over_line', 'under_line', 'prop_type']]
|
211 |
prop_df.rename(columns={"over_prop": "Prop"}, inplace = True)
|
212 |
prop_df['Over'] = 1 / prop_df['over_line']
|
|
|
297 |
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes], ignore_index=True)
|
298 |
|
299 |
final_outcomes = sim_all_hold
|
300 |
+
st.write(f'finished {prop} for {books}')
|
301 |
|
302 |
elif prop_type_var != 'All Props':
|
303 |
|
|
|
418 |
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes], ignore_index=True)
|
419 |
|
420 |
final_outcomes = sim_all_hold
|
421 |
+
st.write(f'finished {prop_type_var} for {books}')
|
422 |
|
423 |
final_outcomes = final_outcomes[final_outcomes['Prop'] > 0]
|
424 |
if game_select_var == 'Pick6':
|