会员
周边
新闻
博问
闪存
众包
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
江月映重山
博客园
首页
新随笔
联系
订阅
管理
2021年3月12日
关于pandas 时间比对错误Invalid comparison between dtype=datetime64[ns] and date。
摘要: 有以下代码: current_ts = datetime.datetime.now() current_date = current_ts.date() new_df = df[df.index >= current_date] df.index是一个datetime64[ns],当我运行代码时,我
阅读全文
posted @ 2021-03-12 10:19 江月映重山
阅读(4189)
评论(0)
推荐(1)
公告