Multichem commited on
Commit
bf83885
·
1 Parent(s): 77f457d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -51,6 +51,11 @@ def init_baselines():
51
  'FG3_PCT', 'FTM', 'FTA', 'FT_PCT', 'reboundChancesOffensive', 'OREB', 'reboundChancesDefensive', 'DREB', 'reboundChancesTotal', 'REB',
52
  'passes', 'secondaryAssists', 'freeThrowAssists', 'assists', 'STL', 'BLK', 'TOV', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy']]
53
  gamelog_table.replace("", np.nan, inplace=True)
 
 
 
 
 
54
  gamelog_table['rebound%'] = gamelog_table['REB'] / gamelog_table['reboundChancesTotal']
55
  gamelog_table['assists_per_pass'] = gamelog_table['assists'] / gamelog_table['passes']
56
  gamelog_table['Fantasy_per_touch'] = gamelog_table['Fantasy'] / gamelog_table['touches']
 
51
  'FG3_PCT', 'FTM', 'FTA', 'FT_PCT', 'reboundChancesOffensive', 'OREB', 'reboundChancesDefensive', 'DREB', 'reboundChancesTotal', 'REB',
52
  'passes', 'secondaryAssists', 'freeThrowAssists', 'assists', 'STL', 'BLK', 'TOV', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy']]
53
  gamelog_table.replace("", np.nan, inplace=True)
54
+ gamelog_table['REB'] = gamelog_table['REB'].astype(int)
55
+ gamelog_table['assists'] = gamelog_table['assists'].astype(int)
56
+ gamelog_table['reboundChancesTotal'] = gamelog_table['reboundChancesTotal'].astype(int)
57
+ gamelog_table['passes'] = gamelog_table['passes'].astype(int)
58
+ gamelog_table['touches'] = gamelog_table['touches'].astype(int)
59
  gamelog_table['rebound%'] = gamelog_table['REB'] / gamelog_table['reboundChancesTotal']
60
  gamelog_table['assists_per_pass'] = gamelog_table['assists'] / gamelog_table['passes']
61
  gamelog_table['Fantasy_per_touch'] = gamelog_table['Fantasy'] / gamelog_table['touches']