original_docstring: Aggregrates a query of stats by player
docstring: Aggregrates a query of stats by player
docstring_tokens: Aggregrates a query of stats by player
code: def aggregate_plyr_stats(self, plyr_id, sample_size, sort_by_category,
                               weeks):
          'Aggregrates a query of stats by player'
  
          query = self._generate_query(weeks)
          return query.sort(sort_by_category).player(player_id=plyr_id).limit(sample_size).as_aggregate()
code_tokens: def aggregate_plyr_stats ( self , plyr_id , sample_size , sort_by_category , weeks ) : query = self . _generate_query ( weeks ) return query . sort ( sort_by_category ) . player ( player_id = plyr_id ) . limit ( sample_size ) . as_aggregate ( )
short_docstring: Aggregrates a query of stats by player
short_docstring_tokens: Aggregrates a query of stats by player
comment: 'Aggregrates a query of stats by player'