-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
DatetimeIndex + ndarray[int] wrong, reverse op errors #19123
Comments
what do you think about banning all integer arithmetic with DTI (wether has a freq or not) and TDI (already banned), (but leave for PI)? I know its sometimes convenient but it relies much to heavily on the 'freq'. which is kind of a hack for DTI. |
It would have the upside of making Series[datetime64] and DatetimeIndex more interchangeable. We'd have to (get to) get rid of Timestamp integer arithmetic at the same time. |
yeah I wrote this then erased it. It IS convenient. |
Hmm this also leads to a weird non-commutativity:
Since |
This is fixed in master, not sure when |
Made a note in #18824 to track down what PR fixed this. Closing. |
In both 0.22.0 and 1265f66
Expected:
The text was updated successfully, but these errors were encountered: