-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: Remove .to_datetime methods #18648
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
Conversation
Oops, I forgot some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks fine. merge on all green. be sure to grep the docs to see if we are actually using this anywhere (besides api.rst), obviously this is tricky as we use pd.to_datetime()
all over the place and this matches.
@@ -888,12 +870,6 @@ def test_to_datetime_list_of_integers(self): | |||
|
|||
tm.assert_index_equal(rng, result) | |||
|
|||
def test_to_datetime_freq(self): | |||
xp = bdate_range('2000-1-1', periods=10, tz='UTC') | |||
rs = xp.to_datetime() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
odd that this didn't warn before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, indeed...
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
7ce6765
to
c4977d5
Compare
Codecov Report
@@ Coverage Diff @@
## master #18648 +/- ##
==========================================
- Coverage 91.59% 91.58% -0.02%
==========================================
Files 153 153
Lines 51221 51236 +15
==========================================
+ Hits 46917 46924 +7
- Misses 4304 4312 +8
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #18648 +/- ##
==========================================
- Coverage 91.59% 91.55% -0.05%
==========================================
Files 153 153
Lines 51221 51205 -16
==========================================
- Hits 46917 46880 -37
- Misses 4304 4325 +21
Continue to review full report at Codecov.
|
All is green, so merging. |
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 #8254, #14096, #14113