Spaces:
Running
Running
James McCool
commited on
Commit
·
5752e3b
1
Parent(s):
830b46e
trying to clean up frame copying
Browse files
app.py
CHANGED
@@ -470,9 +470,9 @@ with tab5:
|
|
470 |
flex_file['Prop'] = flex_file['Player'].map(prop_dict)
|
471 |
flex_file = flex_file[['Player', 'book', 'Prop', 'Floor', 'Median', 'Ceiling', 'STD']]
|
472 |
|
473 |
-
hold_file = flex_file
|
474 |
-
overall_file = flex_file
|
475 |
-
prop_file = flex_file
|
476 |
|
477 |
overall_players = overall_file[['Player']]
|
478 |
|
@@ -518,7 +518,7 @@ with tab5:
|
|
518 |
players_only['Team'] = players_only['Player'].map(team_dict)
|
519 |
|
520 |
leg_outcomes = players_only[['Player', 'Team', 'Book', 'Prop Type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge']]
|
521 |
-
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes]
|
522 |
|
523 |
final_outcomes = sim_all_hold
|
524 |
|
@@ -608,9 +608,9 @@ with tab5:
|
|
608 |
flex_file['Prop'] = flex_file['Player'].map(prop_dict)
|
609 |
flex_file = flex_file[['Player', 'book', 'Prop', 'Floor', 'Median', 'Ceiling', 'STD']]
|
610 |
|
611 |
-
hold_file = flex_file
|
612 |
-
overall_file = flex_file
|
613 |
-
prop_file = flex_file
|
614 |
|
615 |
overall_players = overall_file[['Player']]
|
616 |
|
@@ -656,7 +656,7 @@ with tab5:
|
|
656 |
players_only['Team'] = players_only['Player'].map(team_dict)
|
657 |
|
658 |
leg_outcomes = players_only[['Player', 'Team', 'Book', 'Prop Type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge']]
|
659 |
-
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes]
|
660 |
|
661 |
final_outcomes = sim_all_hold
|
662 |
|
|
|
470 |
flex_file['Prop'] = flex_file['Player'].map(prop_dict)
|
471 |
flex_file = flex_file[['Player', 'book', 'Prop', 'Floor', 'Median', 'Ceiling', 'STD']]
|
472 |
|
473 |
+
hold_file = flex_file.copy()
|
474 |
+
overall_file = flex_file.copy()
|
475 |
+
prop_file = flex_file.copy()
|
476 |
|
477 |
overall_players = overall_file[['Player']]
|
478 |
|
|
|
518 |
players_only['Team'] = players_only['Player'].map(team_dict)
|
519 |
|
520 |
leg_outcomes = players_only[['Player', 'Team', 'Book', 'Prop Type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge']]
|
521 |
+
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes])
|
522 |
|
523 |
final_outcomes = sim_all_hold
|
524 |
|
|
|
608 |
flex_file['Prop'] = flex_file['Player'].map(prop_dict)
|
609 |
flex_file = flex_file[['Player', 'book', 'Prop', 'Floor', 'Median', 'Ceiling', 'STD']]
|
610 |
|
611 |
+
hold_file = flex_file.copy()
|
612 |
+
overall_file = flex_file.copy()
|
613 |
+
prop_file = flex_file.copy()
|
614 |
|
615 |
overall_players = overall_file[['Player']]
|
616 |
|
|
|
656 |
players_only['Team'] = players_only['Player'].map(team_dict)
|
657 |
|
658 |
leg_outcomes = players_only[['Player', 'Team', 'Book', 'Prop Type', 'Prop', 'Mean_Outcome', 'Imp Over', 'Over%', 'Imp Under', 'Under%', 'Bet?', 'Edge']]
|
659 |
+
sim_all_hold = pd.concat([sim_all_hold, leg_outcomes])
|
660 |
|
661 |
final_outcomes = sim_all_hold
|
662 |
|