CSV File Sytnax Error

kugyelkakugyelka Member Posts: 1 Contributor I
edited December 2018 in Help

The csv file from the URL https://files.ontario.ca/opendata/2536_bridge_conditions.csv has 4 rows of labels and data that i need to take out. The 4th row can stay as it is in english labels that i would like to keep. I am running into issues where when i use the import wizard the top rows either come with a sytax error and there is only french labels or if i deselect the escpae characters i get all the original rows but its shifted the data below the 4th row and throws everything off from the attribute it should be on. Beyond the tedious solutions of commenting out the top 4 rows and relabeling all the attributes myself, is there a simple solution to my problem? Thanks!

RapidMiner Error.PNGWith syntax errorExcel File.PNGoriginal csv file screenshotRapidMiner noError.PNGwizard with no escape character selected and weird shift of examples

Best Answer

  • sgenzersgenzer Administrator, Moderator, Employee, RapidMiner Certified Analyst, Community Manager, Member, University Professor, PM Moderator Posts: 2,959 Community Manager
    Solution Accepted

    hi @kugyelka - so I think RapidMiner is telling you something that cannot be easily ignored - there is a weird error in cell L4 of the original csv.  You can see it if you look at the csv in a text editor:

     

    Screen Shot 2017-11-14 at 11.47.52 AM.png

     

    So those quotation marks are messing everything up.  If this is a one-off, I would simply delete the quotation marks.  If it's something you are going to do over and over again, I would import as a text file, delete the quotation marks, and then Read CSV.


    Scott

Answers

Sign In or Register to comment.