docs: def sum_table(records):
      """
      Used to compute summaries. The records are assumed to have numeric
      fields, except the first field which is ignored, since it typically
      contains a label. Here is an example:
  
      >>> sum_table([('a', 1), ('b', 2)])
      ['total', 3]
      """
      size = len(records[0])
      result = [None] * size
      firstrec = records[0]
      for i in range(size):
          if isinstance(firstrec[i], (numbers.Number, numpy.ndarray)):
              result[i] = sum(rec[i] for rec in records)
          else:
              result[i] = 'total'
      return result