docs: def avg(self, field):
          """
          Returns the average of the field in the result set of the query
          by wrapping the query and performing an AVG aggregate of the specified field
          :param field: the field to pass to the AVG aggregate
          :type field: str
  
          :return: The average of the specified field
          :rtype: int
          """
          q = Query(self.connection).from_table(self, fields=[
              AvgField(field)
          ])
          rows = q.select(bypass_safe_limit=True)
          return list(rows[0].values())[0]