-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
API: to_datetime inconsistent returning of datetime.datetime #14487
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
i would say we should return the same as [1] |
maybe bread crumbs back to #6415 |
It also depends on which format is specified:
|
On the original question of which of the two behaviours we would want: whether it is for |
Yet another example of unpredictable behaviour: pd.to_datetime(12912, format="%Y%m%d", errors='ignore')
Out[4]: 12912
pd.to_datetime(21213, format="%Y%m%d", errors='ignore')
Out[5]: datetime.datetime(2, 12, 13, 0, 0) |
yeah it's the this'll be addressed in #50242 |
Resolved by #50242 |
Copying from #14448 (comment) (as the issue is closed now):
The above inconsistency (which is also not documented at all I think), is that something we want to fix?
The text was updated successfully, but these errors were encountered: