|
@@ -15,10 +15,11 @@ import pandas as pd
|
|
|
|
|
|
|
|
|
|
def _get_data_type(value):
|
|
def _get_data_type(value):
|
|
- if pd.api.types.is_bool_dtype(value):
|
|
|
|
- return "bool"
|
|
|
|
- elif pd.api.types.is_integer_dtype(value):
|
|
|
|
- return "int"
|
|
|
|
- elif pd.api.types.is_float_dtype(value):
|
|
|
|
- return "float"
|
|
|
|
|
|
+ if not isinstance(value, str):
|
|
|
|
+ if pd.api.types.is_bool_dtype(value):
|
|
|
|
+ return "bool"
|
|
|
|
+ elif pd.api.types.is_integer_dtype(value):
|
|
|
|
+ return "int"
|
|
|
|
+ elif pd.api.types.is_float_dtype(value):
|
|
|
|
+ return "float"
|
|
return re.match(r"^<class '(.*\.)?(.*?)(\d\d)?'>", str(type(value))).group(2)
|
|
return re.match(r"^<class '(.*\.)?(.*?)(\d\d)?'>", str(type(value))).group(2)
|