Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,10 @@ def init_baselines():
|
|
50 |
gamelog_table = gamelog_table[['PLAYER_NAME', 'TEAM_NAME', 'SEASON_ID', 'GAME_DATE', 'MATCHUP', 'MIN', 'touches', 'PTS', 'FGM', 'FGA', 'FG_PCT', 'FG3M', 'FG3A',
|
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("",
|
|
|
|
|
|
|
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)
|
|
|
50 |
gamelog_table = gamelog_table[['PLAYER_NAME', 'TEAM_NAME', 'SEASON_ID', 'GAME_DATE', 'MATCHUP', 'MIN', 'touches', 'PTS', 'FGM', 'FGA', 'FG_PCT', 'FG3M', 'FG3A',
|
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['assists'].replace("", 0, inplace=True)
|
54 |
+
gamelog_table['reboundChancesTotal'].replace("", 0, inplace=True)
|
55 |
+
gamelog_table['passes'].replace("", 0, inplace=True)
|
56 |
+
gamelog_table['touches'].replace("", 0, inplace=True)
|
57 |
gamelog_table['REB'] = gamelog_table['REB'].astype(int)
|
58 |
gamelog_table['assists'] = gamelog_table['assists'].astype(int)
|
59 |
gamelog_table['reboundChancesTotal'] = gamelog_table['reboundChancesTotal'].astype(int)
|