You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like the issue here is that, initially, the DTIs are not equal nor are their dtypes because of the different timezones, so they both converted to Index.
This actually starts in the intersection method for DTI, but gets dropped into the Index intersection method when it is determined that they're not equal.
Is the expected behavior that, in this case of the intersection, the DTIs are considered equal if the underlying indices are equal, regardless of timezone?
If so, then we can make a change to the equality check in the DTI intersection method.
The other option I see is to return an Index rather than a DTI in the case that they're equal and avoid or modify the offending shallow copy.
for other intersection-like operations with mixed timezones we convert to UTC (in particular im thinking of NDFrame._align_frame). would that be a better behavior than returning object-dtype?
This now returns an object-dtype Index. The analogous union also returns object dtype, but has a deprecation saying it will be UTC in a future version. We probably should do the same for all setops right?
If the values differ, no error is raised
The text was updated successfully, but these errors were encountered: