Spaces:
Running
Running
James McCool
commited on
Commit
•
c16ce13
1
Parent(s):
51c5926
changed dict source for prop
Browse files
app.py
CHANGED
@@ -433,14 +433,15 @@ with tab5:
|
|
433 |
prop_df = prop_df.loc[prop_df['Prop'] != 0]
|
434 |
prop_df['Over'] = 1 / prop_df['over_line']
|
435 |
prop_df['Under'] = 1 / prop_df['under_line']
|
|
|
|
|
|
|
|
|
|
|
|
|
436 |
df = pd.merge(player_stats, prop_df, how='left', left_on=['Player'], right_on = ['Player'])
|
437 |
df = df.reset_index(drop=True)
|
438 |
-
|
439 |
-
prop_dict = dict(zip(df.Player, df.Prop))
|
440 |
team_dict = dict(zip(df.Player, df.Team))
|
441 |
-
book_dict = dict(zip(df.Player, df.book))
|
442 |
-
over_dict = dict(zip(df.Player, df.Over))
|
443 |
-
under_dict = dict(zip(df.Player, df.Under))
|
444 |
|
445 |
total_sims = 1000
|
446 |
|
@@ -574,14 +575,16 @@ with tab5:
|
|
574 |
prop_df = prop_df.reset_index(drop=True)
|
575 |
prop_df['Over'] = 1 / prop_df['over_line']
|
576 |
prop_df['Under'] = 1 / prop_df['under_line']
|
577 |
-
|
578 |
-
df = df.reset_index(drop=True)
|
579 |
-
|
580 |
prop_dict = dict(zip(df.Player, df.Prop))
|
581 |
book_dict = dict(zip(df.Player, df.book))
|
582 |
over_dict = dict(zip(df.Player, df.Over))
|
583 |
-
team_dict = dict(zip(df.Player, df.Team))
|
584 |
under_dict = dict(zip(df.Player, df.Under))
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
total_sims = 1000
|
587 |
|
|
|
433 |
prop_df = prop_df.loc[prop_df['Prop'] != 0]
|
434 |
prop_df['Over'] = 1 / prop_df['over_line']
|
435 |
prop_df['Under'] = 1 / prop_df['under_line']
|
436 |
+
|
437 |
+
prop_dict = dict(zip(prop_df.Player, prop_df.Prop))
|
438 |
+
book_dict = dict(zip(prop_df.Player, prop_df.book))
|
439 |
+
over_dict = dict(zip(prop_df.Player, prop_df.Over))
|
440 |
+
under_dict = dict(zip(prop_df.Player, prop_df.Under))
|
441 |
+
|
442 |
df = pd.merge(player_stats, prop_df, how='left', left_on=['Player'], right_on = ['Player'])
|
443 |
df = df.reset_index(drop=True)
|
|
|
|
|
444 |
team_dict = dict(zip(df.Player, df.Team))
|
|
|
|
|
|
|
445 |
|
446 |
total_sims = 1000
|
447 |
|
|
|
575 |
prop_df = prop_df.reset_index(drop=True)
|
576 |
prop_df['Over'] = 1 / prop_df['over_line']
|
577 |
prop_df['Under'] = 1 / prop_df['under_line']
|
578 |
+
|
|
|
|
|
579 |
prop_dict = dict(zip(df.Player, df.Prop))
|
580 |
book_dict = dict(zip(df.Player, df.book))
|
581 |
over_dict = dict(zip(df.Player, df.Over))
|
|
|
582 |
under_dict = dict(zip(df.Player, df.Under))
|
583 |
+
|
584 |
+
df = pd.merge(player_stats, prop_df, how='left', left_on=['Player'], right_on = ['Player'])
|
585 |
+
df = df.reset_index(drop=True)
|
586 |
+
|
587 |
+
team_dict = dict(zip(df.Player, df.Team))
|
588 |
|
589 |
total_sims = 1000
|
590 |
|