The trivial CSV line can be used using the line split function. But some lines may have, " for example.
"good,morning", 100, 300, "1998,5,3"
therefore, direct use of line splitting will not solve the problem.
My solution is to first split the line with,, and then concatenate the lines with " at the beginning or end of the line.
What is the best practice for this problem?
I am wondering if there is a Python or F # code snippet for this.
EDIT: I'm more interested in the implementation detail, rather than using the library.
python csv
Yin zhu
source share