Pandas: timestamp to datetime

Pandas: timestamp to datetime,第1张

Pandas: timestamp to datetime

This looks look epoch timestamps which is number of seconds since 1st January
1970 :

In [71]:pd.to_datetime(df['date'], unit='s')​Out[71]:0   2016-10-13 03:32:091   2016-10-13 03:32:102   2016-10-13 03:36:433   2016-10-13 03:36:454   2016-10-13 03:36:455   2016-10-13 03:36:45Name: date, dtype: datetime64[ns]


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/4911786.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-12
下一篇 2022-11-12

发表评论

登录后才能评论

评论列表(0条)

保存