Multichem commited on
Commit
f15074c
·
1 Parent(s): 94c1a57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -32,7 +32,7 @@ american_format = {'First Inning Lead Percentage': '{:.2%}', 'Fifth Inning Lead
32
 
33
  master_hold = 'https://docs.google.com/spreadsheets/d/1I_1Ve3F4tftgfLQQoRKOJ351XfEG48s36OxXUKxmgS8/edit#gid=694077504'
34
 
35
- @st.cache_resource(ttl=300)
36
  def init_baselines():
37
  sh = gspreadcon.open_by_url(master_hold)
38
  worksheet = sh.worksheet('Game_Betting')
@@ -51,6 +51,7 @@ def init_baselines():
51
  worksheet = sh.worksheet('prop_frame')
52
  raw_display = pd.DataFrame(worksheet.get_all_records())
53
  raw_display.replace('', np.nan, inplace=True)
 
54
  prop_frame = raw_display.dropna()
55
 
56
  return game_model, overall_stats, timestamp, prop_frame
 
32
 
33
  master_hold = 'https://docs.google.com/spreadsheets/d/1I_1Ve3F4tftgfLQQoRKOJ351XfEG48s36OxXUKxmgS8/edit#gid=694077504'
34
 
35
+ @st.cache_resource(ttl=299)
36
  def init_baselines():
37
  sh = gspreadcon.open_by_url(master_hold)
38
  worksheet = sh.worksheet('Game_Betting')
 
51
  worksheet = sh.worksheet('prop_frame')
52
  raw_display = pd.DataFrame(worksheet.get_all_records())
53
  raw_display.replace('', np.nan, inplace=True)
54
+ raw_display.replace('#DIV/0!', np.nan, inplace=True)
55
  prop_frame = raw_display.dropna()
56
 
57
  return game_model, overall_stats, timestamp, prop_frame