By Dr. Louay Chebib
https://github.com/Netuser-Py/pythoncsvdemo
What is CSV?
Python CSV
csv.list_dialects() -> ['excel', 'excel-tab', 'unix']
The reader is hard-coded to recognise either '\r' or '\n' as end-of-line, and ignores lineterminator.
lineterminator="\n" (unix); lineterminator="\r\n" is ignored
for tab, use: delimiter='\t' in the open
csv.Sniffer is used to deduce the format of a CSV file
Demo
load_CLNT():
pre-process: replace single b'\n' -> b'|'