I have a decently large data set nothing crazy, but when I run below code to convert to date time, any reason why the cells seems to run for a very long amount of time? Any way I can improve code for performance?
Code:
df["created_at"] = pd.to_datetime(df["timestamp"]).dt.strftime('%Y-%m-%d %H:%M:%S')
where the timstamp column value originally looks like below
Wed Nov 22 08:31:24 +0000 2017
Thanks