bugfix: date type casting bug
This commit is contained in:
parent
01ca780c99
commit
133b0120db
|
@ -284,7 +284,7 @@ class Generator (Learner):
|
||||||
_df[name] = _df[name].astype('datetime64[ns]')
|
_df[name] = _df[name].astype('datetime64[ns]')
|
||||||
else:
|
else:
|
||||||
_df[name] = _df[name].astype(str)
|
_df[name] = _df[name].astype(str)
|
||||||
_df[name] = _df[name].fillna('')
|
_df[name] = _df[name].replace('NaT','')
|
||||||
if r :
|
if r :
|
||||||
self.log(**{'action':'format','input':r})
|
self.log(**{'action':'format','input':r})
|
||||||
return _df
|
return _df
|
||||||
|
|
Loading…
Reference in New Issue