I was trying to get an idea of some lines in a huge csv file so I did this
with open('###.csv','rb')` as csvfile: conusreader = csv.reader(csvfile,delimiter=' ', quotechar='|') for row in conusreader: print ', '.join(row) Then I got an error in Pycharm
"for row in conusreader: _csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode?"
I'm not quite sure what it means. Could anyone help me to fix this error?
csv.reader(open(csvfile, 'rU'), delimeter=' ', quote='|'). Which operating system are you running this on?