Friday, 14 April 2017

python - Dealing with CSV with a truncated quote

So I have some data in a csv with delimiter=' ' and quotechar=' '. I'm using the python csv package to read it but here's the catch. There is one line that either has some text in a quote, or is just a single quote that is it looks either like this



...
"Some text"
...


or like this




...
"
...


Is there some way I can tell the reader to end quote if it hits a newline?

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...