Spaces:
Running
Running
James McCool
commited on
Commit
·
ef5c84a
1
Parent(s):
2d566b3
Comment out data frame dropna calls in app.py to simplify data processing for betting models, maintaining the structure for potential future use.
Browse files
app.py
CHANGED
@@ -97,19 +97,19 @@ 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 |
+
# 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 |
|