'Given a string, infer type and formatting options.'

def _infer_value(self, value):

    if (not isinstance(value, unicode)):
        value = str(value)
    v = self._cast_numeric(value)
    if (v is None):
        v = self._cast_percentage(value)
    if (v is None):
        v = self._cast_time(value)
    if (v is not None):
        self.data_type = self.TYPE_NUMERIC
        return v
    return value
