original_docstring: Aggregates a query of stats by position
docstring: Aggregates a query of stats by position
docstring_tokens: Aggregates a query of stats by position
code: def aggregrate_position_stats(self, position_type, sample_size,
                                    sort_by_category, weeks):
          'Aggregates a query of stats by position'
  
          query = self._generate_query(weeks)
          return query.sort(sort_by_category).player(
              position=position_type).limit(sample_size).as_aggregate()
code_tokens: def aggregrate_position_stats ( self , position_type , sample_size , sort_by_category , weeks ) : query = self . _generate_query ( weeks ) return query . sort ( sort_by_category ) . player ( position = position_type ) . limit ( sample_size ) . as_aggregate ( )
short_docstring: Aggregates a query of stats by position
short_docstring_tokens: Aggregates a query of stats by position
comment: 'Aggregates a query of stats by position'