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

numpy.datetime64 not accepted as date #24

Open
hunsnowboarder opened this issue Mar 28, 2022 · 1 comment
Open

numpy.datetime64 not accepted as date #24

hunsnowboarder opened this issue Mar 28, 2022 · 1 comment
Assignees

Comments

@hunsnowboarder
Copy link

I get TypeError: Expected 'date' to be type: [str, datetime.date, datetime.datetime]. Got: <class 'numpy.datetime64'>.
My data type: datetime64[ns]

@e-hulten e-hulten self-assigned this Apr 7, 2022
@e-hulten
Copy link
Owner

e-hulten commented Apr 7, 2022

Hi, thanks for the heads up! This should be a quick fix, will take care of it in the next release. Keeping you posted!

In the meantime, using np.datetime_as_string(your_timestamp, unit='D') should do the trick mapping your data type to a data type (str) that is accepted by the current release.

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

2 participants