Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert the below Series to pandas datetime : DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"])

DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"])
DoB = DoB.str[:-2]+'19'+DoB.str[-2:]
pd.to_datetime(DoB,format = '%d%b%Y')
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #Series #pandas #datetime #DoB
ADD COMMENT
Topic
Name
1+8 =