Multichem commited on
Commit
f5f5355
1 Parent(s): e6af9be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -34,6 +34,7 @@ def init_baselines():
34
  adp_hold = pd.DataFrame(worksheet.get_all_records())
35
  adp_hold = adp_hold[['Player', 'Team', 'Bye', 'Position', 'Position Rank', 'Underdog', 'MFL10', 'RTSPORTS', 'AVG', 'Projection', 'Proj ADP', 'Diff']]
36
  adp_table = adp_hold.drop_duplicates(subset='Player')
 
37
 
38
  worksheet = sh.worksheet('Stacks (model)')
39
  stacks_hold = pd.DataFrame(worksheet.get_all_records())
@@ -42,6 +43,7 @@ def init_baselines():
42
  worksheet = sh.worksheet('Player Level Projections')
43
  proj_hold = pd.DataFrame(worksheet.get_all_records())
44
  proj_table = proj_hold[['Player', 'Team', 'Pos', 'Pass Yards', 'PassTD', 'Rush Yards', 'RushTD', 'Receptions', 'Rec Yards', 'RecTD', 'Proj']]
 
45
 
46
  return adp_table, stacks_table, proj_table
47
 
 
34
  adp_hold = pd.DataFrame(worksheet.get_all_records())
35
  adp_hold = adp_hold[['Player', 'Team', 'Bye', 'Position', 'Position Rank', 'Underdog', 'MFL10', 'RTSPORTS', 'AVG', 'Projection', 'Proj ADP', 'Diff']]
36
  adp_table = adp_hold.drop_duplicates(subset='Player')
37
+ adp_table.replace('', np.nan, inplace=True)
38
 
39
  worksheet = sh.worksheet('Stacks (model)')
40
  stacks_hold = pd.DataFrame(worksheet.get_all_records())
 
43
  worksheet = sh.worksheet('Player Level Projections')
44
  proj_hold = pd.DataFrame(worksheet.get_all_records())
45
  proj_table = proj_hold[['Player', 'Team', 'Pos', 'Pass Yards', 'PassTD', 'Rush Yards', 'RushTD', 'Receptions', 'Rec Yards', 'RecTD', 'Proj']]
46
+ proj_table.replace('', np.nan, inplace=True)
47
 
48
  return adp_table, stacks_table, proj_table
49