Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,8 @@ def init_baselines():
|
|
60 |
gamelog_table['touches'] = gamelog_table['touches'].astype(int)
|
61 |
gamelog_table['rebound%'] = gamelog_table['REB'] / gamelog_table['reboundChancesTotal']
|
62 |
gamelog_table['assists_per_pass'] = gamelog_table['assists'] / gamelog_table['passes']
|
63 |
-
gamelog_table['Fantasy_per_touch'] = gamelog_table['Fantasy'] / gamelog_table['
|
64 |
-
gamelog_table['FD_Fantasy_per_touch'] = gamelog_table['FD_Fantasy'] / gamelog_table['
|
65 |
|
66 |
season_long_table = gamelog_table[['PLAYER_NAME', 'TEAM_NAME']]
|
67 |
season_long_table['MIN'] = gamelog_table.groupby(['PLAYER_NAME', 'SEASON_ID'], sort=False)['MIN'].transform('mean').astype(float)
|
|
|
60 |
gamelog_table['touches'] = gamelog_table['touches'].astype(int)
|
61 |
gamelog_table['rebound%'] = gamelog_table['REB'] / gamelog_table['reboundChancesTotal']
|
62 |
gamelog_table['assists_per_pass'] = gamelog_table['assists'] / gamelog_table['passes']
|
63 |
+
gamelog_table['Fantasy_per_touch'] = gamelog_table['Fantasy'] / gamelog_table['passes']
|
64 |
+
gamelog_table['FD_Fantasy_per_touch'] = gamelog_table['FD_Fantasy'] / gamelog_table['passes']
|
65 |
|
66 |
season_long_table = gamelog_table[['PLAYER_NAME', 'TEAM_NAME']]
|
67 |
season_long_table['MIN'] = gamelog_table.groupby(['PLAYER_NAME', 'SEASON_ID'], sort=False)['MIN'].transform('mean').astype(float)
|