📌  相关文章
📜  将以下系列转换为熊猫日期时间: DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"]) - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:13.738000             🧑  作者: Mango

代码示例1
DoB = pd.Series(["07Sep59","01Jan55","15Dec47","11Jul42"])
DoB = DoB.str[:-2]+'19'+DoB.str[-2:]
pd.to_datetime(DoB,format = '%d%b%Y')