you can use pandas.to_datetime
:
pd.to_datetime(df["my_column"])
If you want to customize it, you can use pandas.Series.dt.strftime
, e.g.:
pd.to_datetime(df["my_column"]).dt.strftime('%d%b%Y')
#The format will be something like 30May2000
You can check all the datetime format codes here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…