-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
DEPR: Deprecated Index.to_datetime #14096
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: Deprecated Index.to_datetime #14096
Conversation
9adbe1f
to
efa9885
Compare
Current coverage is 85.27% (diff: 100%)@@ master #14096 diff @@
==========================================
Files 139 139
Lines 50489 50490 +1
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 43052 43053 +1
Misses 7437 7437
Partials 0 0
|
@jorisvandenbossche : Since Travis is passing, and if there are no complaints, IMO this can be merged? |
Partially addresses pandas-devgh-8254. Closes pandas-devgh-8612 because pd.to_datetime has a format arg. [ci skip]
efa9885
to
5512837
Compare
I would add the deprecation of Timestamp.to_datetime as well, if you are ok with that? |
The reasons for deprecation are slightly different though. When I looked into it, the deprecation was a little more complicated. This change, however, was relatively trivial. 😄 I would feel more comfortable doing it in a separate PR if that's okay. |
OK, that's fine :-) Thanks! |
@jorisvandenbossche : Also, add that deprecation to #6581. |
@gfyoung yep, thanks, added |
Removes the following .to_datetime methods * Index.to_datetime * Timestamp.to_datetime * PeriodIndex.to_datetime * DatetimeIndex.to_datetime All were deprecated in 0.19.0 xref pandas-devgh-8254, pandas-devgh-14096, pandas-devgh-14113
Removes the following .to_datetime methods * Index.to_datetime * NaTType.to_datetime * Timestamp.to_datetime * PeriodIndex.to_datetime * DatetimeIndex.to_datetime All were deprecated in 0.19.0 xref pandas-devgh-8254, pandas-devgh-14096, pandas-devgh-14113
Deprecates both
Index.to_datetime
andDatetimeIndex.to_datetime
in favor ofpd.to_datetime
.Partially addresses #8254.
Closes #5612 because
pd.to_datetime
does have aformat
argument.