pandas里面时间戳转时间to_datetime注意unit

Using pandas to_datetime with timestamps

(遇到在pandas里面时间戳转时间的问题,把查到的答案记录在这里)

主要注意to_datetime函数里面的单位unit默认是毫秒ms,而非秒,而一般的10位时间戳的单位是秒,因此需要加上这个参数。

猜你喜欢

转载自blog.csdn.net/yuxeaotao/article/details/90517711
今日推荐