James McCool commited on
Commit
8709b94
·
1 Parent(s): 8c58f6d

Comment out percentage conversion lines in app.py to simplify data processing for betting models, maintaining the existing structure for future adjustments.

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -92,10 +92,10 @@ 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')
 
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')