-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
INT/CLN: remove to_datetime from class methods #8254
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
Comments
to_datetime/to_timedelta
from class methods
I actually would like to keep |
See also #5612 (wihch can be closed as well when this is deprecated)
There is |
@jorisvandenbossche : Ah, that's a good point. I wasn't actually familiar with the |
Partially addresses pandas-devgh-8254. Closes pandas-devgh-8612 because pd.to_datetime has a format arg. [ci skip]
@jorisvandenbossche : On the topic of deprecating |
I would remove |
@jreback : Yes, that I can now agree with given what @jorisvandenbossche said earlier. What about |
yes that as well. no vestages, check |
@jreback : |
Also, checkoff the |
I just discovered that The implementation for |
sure this can be removed |
Let's add it to the list then since it will require slightly different treatment. |
Is it needed to remove the |
Ah, I see that this functionality is covered by |
@jorisvandenbossche : Agreed, the doc string is not right because it inherits it from One option is to add a check for |
I see that there is also a (accepting Periods in |
Ah, okay, fair enough. Will leave that part alone then. |
* DEPR: Deprecate Timestamp.to_datetime * API: Issue real warning in to_pydatetime * DEPR: Deprecate NaT.to_datetime Closes gh-8254.
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
see #8184
related #8185
Index.to_datetime
currently exists but really no need for this aspd.to_datetime
subsumes this functionaility (and is more general). and just pollutes the interface.so remove:
Timestamp.to_datetime
DatetimeIndex.to_datetime
DEPR: Deprecated Index.to_datetime #14096Index.to_datetime
DEPR: Deprecated Index.to_datetime #14096NaT.to_datetime
PeriodIndex.to_datetime
DEPR: Deprecated PeriodIndex.to_datetime #14113(and fix the parser to call directly try the conversion / use a helper function).
The text was updated successfully, but these errors were encountered: