会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
李鸿江
博客园
首页
新随笔
联系
订阅
管理
2021年11月24日
解决 groupby 出现错误:TypeError: '<' not supported between instances of 'int' and 'datetime.datetime'
摘要: g = df2.groupby(['name'])for label, option_course in g: #其中key代表分组后字典的键,也就是score print(label) #字典对应的值选修的科目 print(option_course) TypeError: '<' not sup
阅读全文
posted @ 2021-11-24 20:28 GalleonsL
阅读(3492)
评论(0)
推荐(0)
公告