Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: dtype '<type 'datetime.datetime'>' not understood #11

Open
renelikestacos opened this issue Jun 29, 2019 · 2 comments
Open

Comments

@renelikestacos
Copy link

Hi @maxim5 i tried to run your code,

fetching (run_fetch.py) the data worked but it failed afterwards at running the training (run_train.py) with the error

TypeError: dtype '<type 'datetime.datetime'>' not understood

Do you know about it? I tried to fix it in the to_changes function but I just drag another error with me. It seems that converting the date/time fields are not working anymore.

@andrewpol777
Copy link

in module 'data_util.py' row 27:
#'time': raw.date.astype(datetime.datetime).apply(lambda val: seconds(val) / (606024)),
'time': raw.date.astype('datetime64[ns]').apply(lambda val: seconds(val) / (606024)),

@maxim5
Copy link
Owner

maxim5 commented Dec 30, 2019

Thanks @andrewpol777 you're right, this is more robust.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants