Spaces:
Running
Running
James McCool
commited on
Commit
·
9aab159
1
Parent(s):
ef5c84a
Comment out additional data frame dropna calls in app.py to further simplify data processing for betting models, while keeping the structure intact for future use.
Browse files
app.py
CHANGED
@@ -97,19 +97,16 @@ def init_baselines():
|
|
97 |
cursor = collection.find()
|
98 |
raw_display = pd.DataFrame(cursor)
|
99 |
raw_display.replace('', np.nan, inplace=True)
|
100 |
-
# prop_frame = raw_display.dropna(subset='Team')
|
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.dropna(subset='proj')
|
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.dropna(subset='Player')
|
113 |
|
114 |
return pitcher_stats, hitter_stats, team_frame, prop_frame, betsheet_frame, pick_frame
|
115 |
|
|
|
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 |
|