Python) datetime64[ns]로 변환하는 방법

2022. 10. 10. 19:54분석 Python/Pandas Tip

df['timestamp'] = pd.to_datetime(df.timestamp).dt.tz_localize(None)

 

 

https://stackoverflow.com/questions/62917882/convert-datetime64ns-utc-pandas-column-to-datetime

 

convert datetime64[ns, UTC] pandas column to datetime

I have a dataframe which has timestamp and its datatype is object. 0 2020-07-09T04:23:50.267Z 1 2020-07-09T11:21:55.536Z 2 2020-07-09T11:23:18.015Z 3 2020-07-09T04:03:28.581Z 4 2020-07-

stackoverflow.com

 

728x90