James McCool commited on
Commit
4a78cbd
·
1 Parent(s): 8709b94

Comment out additional percentage conversion lines in app.py to further simplify data processing for betting models, while preserving the structure for potential future use.

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -92,17 +92,6 @@ def init_baselines():
92
  cursor = collection.find()
93
  raw_display = pd.DataFrame(cursor)
94
  team_frame = raw_display.drop_duplicates(subset='Names')
95
- # team_frame['Win Percentage'] = team_frame['Win Percentage'].str.replace('%', '').astype('float')/100
96
- # team_frame['Cover Spread Percentage'] = team_frame['Cover Spread Percentage'].str.replace('%', '').astype('float')/100
97
- # team_frame['ML_Value'] = team_frame['ML_Value'].str.replace('%', '').astype('float')/100
98
- # team_frame['Spread_Value'] = team_frame['Spread_Value'].str.replace('%', '').astype('float')/100
99
-
100
- # sh = gc.open_by_url(master_hold)
101
- # worksheet = sh.worksheet('Game_Betting_Model')
102
- # raw_display = pd.DataFrame(worksheet.get_all_records())
103
- # team_frame = raw_display.drop_duplicates(subset='Names')
104
- # team_frame['Win Percentage'] = team_frame['Win Percentage'].str.replace('%', '').astype('float')/100
105
- # team_frame['Cover Spread Percentage'] = team_frame['Cover Spread Percentage'].str.replace('%', '').astype('float')/100
106
 
107
  sh = gc.open_by_url(master_hold)
108
  worksheet = sh.worksheet('prop_frame')
 
92
  cursor = collection.find()
93
  raw_display = pd.DataFrame(cursor)
94
  team_frame = raw_display.drop_duplicates(subset='Names')
 
 
 
 
 
 
 
 
 
 
 
95
 
96
  sh = gc.open_by_url(master_hold)
97
  worksheet = sh.worksheet('prop_frame')