Spaces:
Running
Running
James McCool
commited on
Commit
·
4f91db0
1
Parent(s):
9aab159
Add data frame copies for prop, betsheet, and pick data in app.py to enhance data processing structure for betting models.
Browse files
app.py
CHANGED
@@ -97,16 +97,19 @@ def init_baselines():
|
|
97 |
cursor = collection.find()
|
98 |
raw_display = pd.DataFrame(cursor)
|
99 |
raw_display.replace('', np.nan, inplace=True)
|
|
|
100 |
|
101 |
sh = gc.open_by_url(master_hold)
|
102 |
worksheet = sh.worksheet('Prop_results')
|
103 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
104 |
raw_display.replace('', np.nan, inplace=True)
|
|
|
105 |
|
106 |
collection = db['Pick6_Trends']
|
107 |
cursor = collection.find()
|
108 |
raw_display = pd.DataFrame(cursor)
|
109 |
raw_display.replace('', np.nan, inplace=True)
|
|
|
110 |
|
111 |
return pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame
|
112 |
|
|
|
97 |
cursor = collection.find()
|
98 |
raw_display = pd.DataFrame(cursor)
|
99 |
raw_display.replace('', np.nan, inplace=True)
|
100 |
+
prop_frame = raw_display.copy()
|
101 |
|
102 |
sh = gc.open_by_url(master_hold)
|
103 |
worksheet = sh.worksheet('Prop_results')
|
104 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
105 |
raw_display.replace('', np.nan, inplace=True)
|
106 |
+
betsheet_frame = raw_display.copy()
|
107 |
|
108 |
collection = db['Pick6_Trends']
|
109 |
cursor = collection.find()
|
110 |
raw_display = pd.DataFrame(cursor)
|
111 |
raw_display.replace('', np.nan, inplace=True)
|
112 |
+
pick_frame = raw_display.copy()
|
113 |
|
114 |
return pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame
|
115 |
|