-
-
Notifications
You must be signed in to change notification settings - Fork 18.2k
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
Reindex on nearest datetime gives UFuncTypeError - subtract with dtype('<M8[ns]') and dtype('O') #31964
Comments
I just checked and the same error was present in 1.0.0 but not in 0.25.3 (which instead gives a warning about TZ related issues that I think is not directly relevant here?). |
This doesn't raise an error anymore on master. But didn't check the 1.0.x branch yet. So we should check that, or otherwise find the commit on master that fixed it (and backport that), and add a test for it. |
Is this fixed by #31511? That wasn't backported to 1.0.x. |
yes backporting #31511 will fix this. do we need to add a test? |
Thanks, so this will be in 1.0.2 I gather? :) |
Can someone please tell how to "backport |
Code Sample
Problem description
Running the above code gives:
This is a problem because it occurs in a larger dataset that I need to reindex. It used to work fine with earlier versions of Pandas (although I do not know which, sorry).
Expected Output
Expected output would be something like
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: