|
@@ -397,6 +397,9 @@ class MigrationCleaning:
|
|
|
elif python_type == float:
|
|
|
|
|
|
data[column] = data[column].fillna(np.inf)
|
|
|
+ # Replaces empty fields when type is string
|
|
|
+ if data[column].dtypes == object:
|
|
|
+ data[column] = data[column].replace(r'^\s*$', str(np.inf), regex=True)
|
|
|
data[column] = data[column].astype(python_type)
|
|
|
|
|
|
else:
|