Multichem commited on
Commit
1b2014e
·
1 Parent(s): fd88138

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -53,7 +53,7 @@ def init_baselines():
53
  gamelog_table['reboundChancesTotal'].replace("", 0, inplace=True)
54
  gamelog_table['passes'].replace("", 0, inplace=True)
55
  gamelog_table['touches'].replace("", 0, inplace=True)
56
- # gamelog_table['MIN'].replace("", 0, inplace=True)
57
  gamelog_table['Fantasy'].replace("", 0, inplace=True)
58
  gamelog_table['FD_Fantasy'].replace("", 0, inplace=True)
59
  gamelog_table['REB'] = gamelog_table['REB'].astype(int)
@@ -73,10 +73,10 @@ def init_baselines():
73
  gamelog_table[data_cols] = gamelog_table[data_cols].apply(pd.to_numeric, errors='coerce')
74
  gamelog_table['GAME_DATE'] = pd.to_datetime(gamelog_table['GAME_DATE']).dt.date
75
 
76
- gamelog_table = gamelog_table.set_axis(['Player', 'Pos', 'Team', 'Opp', 'Season', 'Date', 'Matchup', 'Min', 'Touches', 'Touch/Min', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
77
  'FG3A', 'FG3%', 'FTM', 'FTA', 'FT%', 'OREB Chance', 'OREB', 'DREB Chance', 'DREB', 'REB Chance', 'REB',
78
  'Passes', 'Alt Assists', 'FT Assists', 'Assists', 'Stl', 'Blk', 'Tov', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy',
79
- 'Rebound%', 'Assists/Pass', 'Fantasy/Touch', 'FD Fantasy/Touch'], axis=1)
80
 
81
  return gamelog_table
82
 
 
53
  gamelog_table['reboundChancesTotal'].replace("", 0, inplace=True)
54
  gamelog_table['passes'].replace("", 0, inplace=True)
55
  gamelog_table['touches'].replace("", 0, inplace=True)
56
+ gamelog_table['MIN'].replace("", 0, inplace=True)
57
  gamelog_table['Fantasy'].replace("", 0, inplace=True)
58
  gamelog_table['FD_Fantasy'].replace("", 0, inplace=True)
59
  gamelog_table['REB'] = gamelog_table['REB'].astype(int)
 
73
  gamelog_table[data_cols] = gamelog_table[data_cols].apply(pd.to_numeric, errors='coerce')
74
  gamelog_table['GAME_DATE'] = pd.to_datetime(gamelog_table['GAME_DATE']).dt.date
75
 
76
+ gamelog_table = gamelog_table.set_axis(['Player', 'Pos', 'Team', 'Opp', 'Season', 'Date', 'Matchup', 'Min', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M',
77
  'FG3A', 'FG3%', 'FTM', 'FTA', 'FT%', 'OREB Chance', 'OREB', 'DREB Chance', 'DREB', 'REB Chance', 'REB',
78
  'Passes', 'Alt Assists', 'FT Assists', 'Assists', 'Stl', 'Blk', 'Tov', 'PF', 'DD', 'TD', 'Fantasy', 'FD_Fantasy',
79
+ 'Rebound%', 'Assists/Pass', 'Touch_per_min', 'Fantasy/Touch', 'FD Fantasy/Touch'], axis=1)
80
 
81
  return gamelog_table
82