James McCool commited on
Commit
f97431a
·
1 Parent(s): 3c69d02

Fix ROO model sheet loading method using open_by_url

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ bo5_player_stats = 'https://docs.google.com/spreadsheets/d/10MVGsAHJPUAdK9SJ28Zq
49
 
50
  @st.cache_data
51
  def load_roo_model():
52
- sh = gc.open('https://docs.google.com/spreadsheets/d/10MVGsAHJPUAdK9SJ28ZqjgBgV2xBJSXEka-s2pIxHHE/edit?pli=1#gid=0')
53
  worksheet = sh.worksheet('ROO')
54
  raw_display = pd.DataFrame(worksheet.get_all_records())
55
  raw_display["Salary"] = raw_display["Salary"].replace("$", "", regex=True).astype(float)
 
49
 
50
  @st.cache_data
51
  def load_roo_model():
52
+ sh = gc.open_by_url('https://docs.google.com/spreadsheets/d/10MVGsAHJPUAdK9SJ28ZqjgBgV2xBJSXEka-s2pIxHHE/edit?pli=1#gid=0')
53
  worksheet = sh.worksheet('ROO')
54
  raw_display = pd.DataFrame(worksheet.get_all_records())
55
  raw_display["Salary"] = raw_display["Salary"].replace("$", "", regex=True).astype(float)