An issue with read csv
bernardo_pagnon
米ember, University ProfessorPosts:60University Professor
inHelp
Hello all,
so, I am trying to read a csv file, but I noticed something strange. If the first row has 4 entries, and the second row 5 entries, RM only reads the first 4 entries of the second row! It seems that the first row defines how many rows will be read. How can I fix the problem? I have thousands of rows, and I don't want to get into my database to find the row with the largest number of columns.
Regards,
Bernardo
so, I am trying to read a csv file, but I noticed something strange. If the first row has 4 entries, and the second row 5 entries, RM only reads the first 4 entries of the second row! It seems that the first row defines how many rows will be read. How can I fix the problem? I have thousands of rows, and I don't want to get into my database to find the row with the largest number of columns.
Regards,
Bernardo
Tagged:
0
Best Answer
-
jacobcybulski 米ember, University ProfessorPosts:391UnicornI assume that your first row has missing values in the attributes far right? If so, make sure the first row has enough extra commas at the end to create those attributes with missing values. Also, I think that if you have the row with headings this row will create the necessary attributes. That should fix the reading problem.6
Answers
Best,
Bernardo
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts