-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: to_datetime with xarray DataArray and specifie unit errors #44053
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
Comments
Hi, I would like to get into the world of contributions to open source software. Can I take a look at this bug? If I can't solve it, I'll report it here. thanks in advance |
Apparently, I've fixed the problem, but I haven't run all the tests yet. Do I just need to run the pytest tests/ command? I got some errors in the tests before changing the source code. I am trying to follow this guideline https://pandas.pydata.org/docs/dev/development/contributing.html |
@rocabrera thanks for taking a look at this! It might be that the errors you get are unrelated (difficult to say without seeing some output). |
I am on it. I will do local testing and then open a PR. |
I am still learning about the package and the correct guidelines to contribute. I made a pr with the code a previously wrote. Thank you for the awesome package. I love working with pandas. I hope I can help as much as possible. |
When passing the values as a
xarray.DataArray
and specifying a unit, we get an error:Since this is an array-like, I expect that we coerce that to a numpy array before passing to our cython routines (eg passing a list or Series does work this way).
And actually when not specifying the unit, it does work:
Installed Versions
The text was updated successfully, but these errors were encountered: