bugfix: date type casting bug

This commit is contained in:
Steve Nyemba 2022-04-14 18:23:43 -05:00
parent 93ebe8ee1b
commit 01ca780c99
1 changed files with 1 additions and 0 deletions

View File

@ -284,6 +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('')
if r : if r :
self.log(**{'action':'format','input':r}) self.log(**{'action':'format','input':r})
return _df return _df