code: def _float_or_str(value):
      
      # remove any surrounding quotes
      value = QUOTE_REGEX.sub('', value)
      try:  # attempt `float()` conversion
          return float(value)
      except ValueError:  # just return the input
          return value
docs: Internal method to attempt `float(value)` handling a `ValueError`