原文:解决 groupby 出现错误:TypeError: '<' not supported between instances of 'int' and 'datetime.datetime'

g df .groupby name for label, option course in g: 其中key代表分组后字典的键,也就是score print label 字典对应的值选修的科目 print option course TypeError: lt not supported between instances of int and datetime.datetime 错误原因:在n ...

2021-11-24 20:28 0 2735 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM