-
-
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
DEPR: DatetimeIndex/PeriodsIndex +/- ops (GH9094) #9630
Conversation
surprise surprise, this was not actually tested anywhere AT ALL. |
722a124
to
4d1ca4f
Compare
Should the same be done for the other operations? Eg addition also still does a set operation:
Addition is not a usefull operation for datetimes as a numeric operation, but better to be consistent in the fact it will not be a set operation in the future I think. |
@jorisvandenbossche yes, |
This should then also close #9095 I think. |
hmm, I guess we changed these all to
@shoyer IIRC did you change these? (I know you suggested we did....) |
I believe I suggested changing some operations like |
@shoyer yeh I just looked at the code and everything is tested as a |
I think this is implemented as an And indeed, in |
this currently represents a set difference operation and should actually be DTI subtraction to yield a TimeDeltaIndex. Change in a future version.
DEPR: DatetimeIndex/PeriodsIndex +/- ops (GH9094)
closes #9094
closes #9095
deprecate
DatetimeIndex/PeriodIndex
+/-
ops which are set ops. In a future version-
will produce aTimeDeltaIndex
and+
aTypeError