【发布时间】:2021-11-22 13:17:33
【问题描述】:
我的代码有以下相关行:
import collections as Counter
它输出以下内容:
TypeError
<ipython-input-13-8b716be54873> in <module>
----> 1 print(sorted(Counter(dataset['Best']).items()))
TypeError: 'module' object is not callable
为什么会发生这种情况,我该如何解决?
【问题讨论】:
-
投反对票,因为代码未格式化为代码。如果这个问题得到解决,我会删除downvote。
标签: python algorithm machine-learning data-science