-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DatetimeIndex.union with tz-aware and tz-naive raises TypeError #21671
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
Don't forget though that the union will do object comparison at the element-level, where that timezone incompatibility still exists so "casting to object" will issue warnings like this:
Do we just want to swallow those or suppress them? I don't want to overhaul Here is the current attempt: |
Actually, are we even able to redirect the Cython See this SO post here. |
@jreback : Thoughts? |
@mroeschke this appears to work in master. closeable? |
Probably could use a unit test. I don't think we have one for this use case. |
xref #11351
Problem description
Per #11351 (comment), this operation should just convert the data to object and not raise a TypeError.
Expected
The text was updated successfully, but these errors were encountered: