会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Loading
JinX
首页
联系
订阅
管理
2021年12月29日
pandas中时间戳转日期时区问题
摘要: 使用pandas将时间戳数字转为日期格式,发现和当前时间相差8小时,是时区不对导致的 下面提供两种解决方法: 使用tz_localize和tz_convert方法 import time import pandas as pd now_time = time.time() pd.Timestamp(
阅读全文
posted @ 2021-12-29 18:14 JinX-Digital
阅读(695)
评论(0)
推荐(0)
编辑
公告