code: def geomean(array):
      
      n = len(array)
  
      if n < 1:
          return 0
      elif n == 1:
          return array[0]
      return stats.mstats.gmean(array)
docs: Return the mean value of a list of divisible numbers.