code: def format_row(self, row, key, color):
          
          value = row[key]
  
          if isinstance(value, bool) or value is None:
              return '+' if value else ''
  
          if not isinstance(value, Number):
              return value
  
          # determine if integer value
          is_integer = float(value).is_integer()
          template = '{}' if is_integer else '{:' + self.floatfmt + '}'
  
          # if numeric, there could be a 'best' key
          key_best = key + '_best'
          if (key_best in row) and row[key_best]:
              template = color + template + Ansi.ENDC.value
          return template.format(value)
docs: For a given row from the table, format it (i.e. floating
          points and color if applicable).