How to use python csv module for splitting double pipe delimited data
I have got data which looks like: "1234"||"abcd"||"a1s1" I am trying to read and write using Python's csv reader and writer. As the csv module's delimiter is limited to single char, is there any way to retrieve data cleanly? I cannot afford to remove the empty columns as it is a massively huge data set to be processed in time bound manner. Any thoughts will be helpful. The docs and experimentation prove that only single-character delimiters are allowed. Since cvs.reader accepts any object that supports iterator protocol, you can use generator syntax to replace || -s with | -s, and then feed