TypeError:“>”在Python中的“str”和“int”实例之间不受支持

2024-10-01 19:25:28 发布

您现在位置:Python中文网/ 问答频道 /正文

对于每个程序,有多少人的编程技能知识少于4?为每个现有程序报告一行

df1['ProgSkills'<4].groupby(by=df1['Program']).count()

错误消息:

TypeError: '<' not supported between instances of 'str' and 'int'

数据帧:

Data frame


Tags: 程序消息by技能报告编程count错误

热门问题