Multichem commited on
Commit
3af6f82
·
1 Parent(s): 280c1f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -122,6 +122,8 @@ def seasonlong_build(data_sample):
122
  season_long_table['FD Fantasy/Touch'] = (data_sample.groupby(['Player', 'Season'], sort=False)['FD_Fantasy'].transform('sum').astype(int) /
123
  data_sample.groupby(['Player', 'Season'], sort=False)['Touches'].transform('sum').astype(int))
124
  season_long_table = season_long_table.drop_duplicates(subset='Player')
 
 
125
 
126
  season_long_table = season_long_table.set_axis(['Player', 'Team', 'Min', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M', 'FG3A',
127
  'FG3%', 'FTM', 'FTA', 'FT%', 'OREB Chance', 'OREB', 'DREB Chance', 'DREB', 'REB Chance', 'REB',
 
122
  season_long_table['FD Fantasy/Touch'] = (data_sample.groupby(['Player', 'Season'], sort=False)['FD_Fantasy'].transform('sum').astype(int) /
123
  data_sample.groupby(['Player', 'Season'], sort=False)['Touches'].transform('sum').astype(int))
124
  season_long_table = season_long_table.drop_duplicates(subset='Player')
125
+
126
+ season_long_table = season_long_table.sort_values(by='Fantasy', ascending=False)
127
 
128
  season_long_table = season_long_table.set_axis(['Player', 'Team', 'Min', 'Touches', 'Pts', 'FGM', 'FGA', 'FG%', 'FG3M', 'FG3A',
129
  'FG3%', 'FTM', 'FTA', 'FT%', 'OREB Chance', 'OREB', 'DREB Chance', 'DREB', 'REB Chance', 'REB',