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
I believe the DatetimeIndex is correct (or at least more useful), because even if timezones don't agree, the underlying instants are well-ordered and compare fine. In fact, both versions compare fine using a simple > comparison:
Code Sample, a copy-pastable example if possible
DatetimeIndex.searchsorted
works fine with mixed timezones:However,
Series.searchsorted
does not:Ostensibly, the underlying data vector is the same in both cases:
Problem description
I believe the
DatetimeIndex
is correct (or at least more useful), because even if timezones don't agree, the underlying instants are well-ordered and compare fine. In fact, both versions compare fine using a simple>
comparison:Expected Output
A workaround is to wrap the column using
pd.DatetimeIndex()
:Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: