bug fix with dates

This commit is contained in:
Steve Nyemba 2021-05-12 09:33:57 -05:00
parent d54758aac3
commit 776a1103f2
1 changed files with 3 additions and 0 deletions

View File

@ -252,6 +252,9 @@ class Components :
if _item['type'] in ['DATE','TIMESTAMP','DATETIMESTAMP','DATETIME'] : if _item['type'] in ['DATE','TIMESTAMP','DATETIMESTAMP','DATETIME'] :
if _item['type'] == 'DATE' : if _item['type'] == 'DATE' :
_df[name] = _df[name].dt.date _df[name] = _df[name].dt.date
_df[name] = pd.to_datetime(_df[name],errors='coerce')