Wrong number of values when importing csv in Weka

前端 未结 9 1232
灰色年华
灰色年华 2021-01-05 15:13

I want to open a csv file (saved from openoffice calc) in weka.

I keep getting an error: \"wrong number of values. 140 read, 139 expected on line 3.\"

The c

9条回答
  •  一整个雨季
    2021-01-05 15:38

    If you have copied data from another file using Conrol+A, Control+C and control+V, you copied extra columns. if you open csv file in Nodepad you will see comma in the end of each row. you got this error because of the comma in the end of each row.

    To avoid this error, press Control and select columns one by one then Control+C now copy it to new File which you will use in weka. or you can use another method to avoid comma in the end of each row.

提交回复
热议问题