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

0

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')
Posted by: Guest on November-20-2020

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

Python Answers by Framework

Browse Popular Code Answers by Language