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
### Issue Description
TypeError: '<' not supported between instances of 'datetime.datetime' and 'str'
### Expected Behavior
I would expect the pyarrow backed datetimeindex to be supported just like the pandas one
### Installed Versions
In [21]: pd.__version__
Out[21]: '3.0.0.dev0+681.g434fda08cf'
The text was updated successfully, but these errors were encountered:
@jbrockmendel I see from the linked PR that you don't think this should be supported. Curious to hear your reasons why before anyone works on it.
pa.timestamp and pd.Timestamp share a lot of the same architecture (save missing value handling) so I think converting from one to another should be seamless. I'm definitely sympathetic to not trying to make everything they do the same, although indexing like this feels useful. I do think part of the confusion here could stem from the fact that we do not have a logical "timestamp" type, only physical
I came across this reading a CSV file with the pyarrow backend, which was great for strings but then didn't help me at all with timestamps.
I see from the linked PR that you don't think this should be supported. Curious to hear your reasons why before anyone works on it.
I linked this there bc the expectation that this would already work bc the only difference is in how the DatetimeIndex is "backed" is incorrect (the Index in question is not a DatetimeIndex at all). I think part of that incorrect expectation is linked to the term "backend" and hope that using a more accurate term might avoid misconceptions.
As to the actual behavior, I'd be fine with it, though I expect the implementation would be very messy to the point where saying "convert to a DatetimeIndex" might be easier.
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
The text was updated successfully, but these errors were encountered: