-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: DatetimeIndex.offset #20716
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
Labels
Milestone
Comments
+1 to deprecate |
note we deprecated |
If no one has started working on this, I would like to take this up. |
@jschendel Okay. |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
DatetimeIndex.offset
andDatimeIndex.freq
refer to the same thing, and are used interchangeably throughout the code forDatetimeIndex
:pandas/pandas/core/indexes/datetimes.py
Lines 1729 to 1732 in 4a34497
Is there a reason for having both?
TimedeltaIndex
andPeriodIndex
only havefreq
, so it seems like we could keepfreq
for consistency, deprecateDatetimeIndex.offset
, and modify theDatetimeIndex
code to only usefreq
.The text was updated successfully, but these errors were encountered: