code: def guess_type(s):
      
      sc = s.replace(',', '') # remove comma from potential numbers
  
      try:
          return int(sc)
      except ValueError:
          pass
  
      try:
          return float(sc)
      except ValueError:
          pass
  
      return s
docs: attempt to convert string value into numeric type