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

datetime64[ns] dtype in dataframe #66

Closed
gianpd opened this issue Apr 19, 2021 · 1 comment
Closed

datetime64[ns] dtype in dataframe #66

gianpd opened this issue Apr 19, 2021 · 1 comment

Comments

@gianpd
Copy link
Contributor

gianpd commented Apr 19, 2021

When, DataTranformer's fit_transform method is called, If some columns have a datetime format, an error is raised by the sklearn\utils\validation.py method.

I fixed it, turning any datetime columns to datetime.toordinal type

@sonichi
Copy link
Collaborator

sonichi commented Apr 19, 2021

Thanks @gianpdomiziani. This a reasonable approach before we add preprocessing specific to datetime type. Would you like to create a PR with your fix?

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