在 Weka 中导入 csv 时值的数量错误 [英] Wrong number of values when importing csv in Weka
问题描述
我想在 weka 中打开一个 csv 文件(从 openoffice calc 保存).
I want to open a csv file (saved from openoffice calc) in weka.
我不断收到错误消息:值的数量错误.读取 140,预计第 3 行有 139."
I keep getting an error: "wrong number of values. 140 read, 139 expected on line 3."
csv 已经用标签周围的引号固定了.我在第一行数了 140 个值.
The csv was already fixed with quotes around the labels. And I count 140 values on the first lines.
这里有什么问题?
链接到 文件.
推荐答案
原来在我导出的 excel 文件中有一个值是看不见的.
Turns out there was an value somewhere for beyond sight in the excel file I was exporting.
我注意到它是因为所有行都以逗号结尾,而不是什么都没有.
I noticed it because all the rows ended with a comma instead of nothing.
只精心挑选合适的范围,复制到文档中并进行工作.
Carefully selected only the right reach, copied in a document and works.
希望这对其他人也有帮助.
Hope this helps somebody else as well.
这篇关于在 Weka 中导入 csv 时值的数量错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!