TypeError: Index(...) must be called with a collection of some kind, '

原因:

​ 如果你的数据只有一列,在指定column时,需要加个中括号

解决:

df = pd.DataFrame(data,columns=['result'])

发表评论

评论列表,共 0 条评论

    暂无评论