对于当前项目,我希望遍历在Pandas DataFrame中定义为common_words的单词对列表。但是,在调用行for word in common_words:时,我收到了错误TypeError: 'NoneType' object is not iterable。document)
# place tf-idf values in a pandas
我知道这个错误消息'TypeError:'NoneType‘对象是不可迭代的’意味着没有数据。然而,我正在浏览我所有的清单,没有一个部分没有价值元素。这是我的代码中与我的问题相关的部分。Users/ellarendell/Desktop/test.py", line 2, in printListTypeError:
Error: 'NoneType' object is not iterable File "<maya console>",scripts/RiggingTool/Modules\System\utils.py", line 8, in findAllModulesTypeError: 'NoneType'
monthAverage,costPerTon,totalCost = displayCost(companyName,monthAverage,costPerTon,totalCost)“这行得到了"TypeError:'NoneType‘object is not iterable”,但我无论如何也找不出原因。