Skip to content

Conversation

@gfyoung
Copy link
Member

@gfyoung gfyoung commented Aug 27, 2016

Deprecates both Index.to_datetime and DatetimeIndex.to_datetime in favor of pd.to_datetime.

Partially addresses #8254.

Closes #5612 because pd.to_datetime does have a format argument.

@codecov-io
Copy link

codecov-io commented Aug 27, 2016

Current coverage is 85.27% (diff: 100%)

Merging #14096 into master will increase coverage by <.01%

@@ 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 

Powered by Codecov. Last update 0e61847...efa9885

@jorisvandenbossche jorisvandenbossche added the Deprecate Functionality to remove in pandas label Aug 27, 2016
@gfyoung
Copy link
Member Author

gfyoung commented Aug 27, 2016

@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]
@jorisvandenbossche
Copy link
Member

I would add the deprecation of Timestamp.to_datetime as well, if you are ok with that?

@gfyoung
Copy link
Member Author

gfyoung commented Aug 27, 2016

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.

@jorisvandenbossche jorisvandenbossche merged commit 670435a into pandas-dev:master Aug 27, 2016
@jorisvandenbossche
Copy link
Member

OK, that's fine :-) Thanks!

@jorisvandenbossche jorisvandenbossche added this to the 0.19.0 milestone Aug 27, 2016
@gfyoung
Copy link
Member Author

gfyoung commented Aug 27, 2016

@jorisvandenbossche : Also, add that deprecation to #6581.

@gfyoung gfyoung deleted the to-datetime-depr branch August 27, 2016 16:27
@jorisvandenbossche
Copy link
Member

@gfyoung yep, thanks, added

gfyoung added a commit to forking-repos/pandas that referenced this pull request Dec 5, 2017
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
gfyoung added a commit to forking-repos/pandas that referenced this pull request Dec 6, 2017
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
gfyoung added a commit that referenced this pull request Dec 6, 2017
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 gh-8254, gh-14096, gh-14113
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Deprecate Functionality to remove in pandas

3 participants