-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugIO DataIO issues that don't fit into a more specific labelIO issues that don't fit into a more specific label
Milestone
Description
From the So question.
I think apply be passing on the format keyword argument:
In [1]: s = pd.Series(['12/1/2012', '30/01/2012'])
In [2]: s.apply(pd.to_datetime, format='%d/%m/%Y')
Out[2]:
0 2012-12-01 00:00:00
1 2012-01-30 00:00:00
dtype: datetime64[ns]
In [3]: pd.to_datetime(s, format='%d/%m/%Y')
Out[3]:
0 2012-01-12 00:00:00
1 2012-01-30 00:00:00
dtype: datetime64[ns]
Metadata
Metadata
Assignees
Labels
BugIO DataIO issues that don't fit into a more specific labelIO issues that don't fit into a more specific label