Multichem commited on
Commit
ae52f5a
·
verified ·
1 Parent(s): 5a893e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -40,9 +40,9 @@ def init_baselines():
40
  sh = gc.open_by_url("https://docs.google.com/spreadsheets/d/1T4n3-KC141n2XwhRCqLssuk1nVdHjsBPSdb8Q6LopuY/edit?gid=0#gid=0")
41
  worksheet = sh.worksheet('JBOTTUM_MMA')
42
  frame_hold = pd.DataFrame(worksheet.get_all_records())
43
- mma_model = frame_hold[['Player', 'Opponent', 'Salary', 'Floor_Adj', 'Median', 'Ceiling_Adj', 'ML_perc', 'Min_Win', 'Min_%', 'Median_Win', 'Med_%', 'Max_Win']]
44
  mma_model = mma_model.drop_duplicates(subset='Player')
45
- mma_model = mma_model.sort_values(by='Median', ascending=False)
46
  mma_model = mma_model.set_index('Player')
47
 
48
  return tennis_model, mma_model
 
40
  sh = gc.open_by_url("https://docs.google.com/spreadsheets/d/1T4n3-KC141n2XwhRCqLssuk1nVdHjsBPSdb8Q6LopuY/edit?gid=0#gid=0")
41
  worksheet = sh.worksheet('JBOTTUM_MMA')
42
  frame_hold = pd.DataFrame(worksheet.get_all_records())
43
+ mma_model = frame_hold[['Player', 'Opponent', 'Salary', 'Floor_Adj', 'Median_Adj', 'Ceiling_Adj', 'ML_perc', 'Min_Win', 'Min_%', 'Median_Win', 'Med_%', 'Max_Win']]
44
  mma_model = mma_model.drop_duplicates(subset='Player')
45
+ mma_model = mma_model.sort_values(by='Median_Adj', ascending=False)
46
  mma_model = mma_model.set_index('Player')
47
 
48
  return tennis_model, mma_model