Oct-15-2019, 12:37 PM
Hi all,
so I have this issue with the convertion to date format.
here is how my csv file looks like:csv
and after setting headers and selecting some columns I got this: df
but when I want to convert to datetime64[ns] I got this error: error
Ialso tried this:
B. regards
Karlito
so I have this issue with the convertion to date format.
here is how my csv file looks like:csv
and after setting headers and selecting some columns I got this: df
but when I want to convert to datetime64[ns] I got this error: error
Ialso tried this:
new_data['Date_Time']=pd.to_datetime(new_data['Date_Time']) new_data.dtypesbut almost the same error:
~/anaconda3/lib/python3.7/site-packages/dateutil/parser/_parser.py in _build_naive(self, res, default) 1225 repl['day'] = monthrange(cyear, cmonth)[1] 1226 -> 1227 naive = default.replace(**repl) 1228 1229 if res.weekday is not None and not res.day: ValueError: year 1552231082 is out of rangeThks for your help.
B. regards
Karlito