code: def avg(self, property):
          
          self.__prepare()
          return self.sum(property) / self.count()
docs: Getting average according to given property
  
          :@param property
          :@type property: string
  
          :@return average: int/float