原文:解決 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