clean nans
This commit is contained in:
parent
f922cf16d7
commit
d09f0f94bd
|
@ -248,6 +248,7 @@ class ImportForm(forms.Form):
|
||||||
# convert dates to iso 8601
|
# convert dates to iso 8601
|
||||||
for col in df.select_dtypes(include='datetime').columns:
|
for col in df.select_dtypes(include='datetime').columns:
|
||||||
df[col] = df[col].dt.strftime("%Y-%m-%d")
|
df[col] = df[col].dt.strftime("%Y-%m-%d")
|
||||||
|
df.fillna('', inplace=True)
|
||||||
|
|
||||||
# convert numbers to strings if this is indicate in schema
|
# convert numbers to strings if this is indicate in schema
|
||||||
for col in props.keys():
|
for col in props.keys():
|
||||||
|
|
Loading…
Reference in New Issue