Hello All,
I'm new for Python programming and I'm having some issues parsing a delimited text file. Any help, suggestions and advice is really appreciated. Thanks a lot in advance.
Objective
My input file could be .txt or .dat or .csv
Any kind of delimited file with the following delimiters (',','/','|',';',':')
I want to use use sniff() to return the Dialect. How do I retrive the columns using CSV and make sure it has header and not just direct data.
regards
YesVee
I'm new for Python programming and I'm having some issues parsing a delimited text file. Any help, suggestions and advice is really appreciated. Thanks a lot in advance.
Objective
My input file could be .txt or .dat or .csv
Any kind of delimited file with the following delimiters (',','/','|',';',':')
- Make sure the files have a header
- File can have only 1, 2 or 6 columns. Any other number of columns makes it an invalid file
- Some column entries will have , in it. It should not clash with delimiter when the delimiter used is a ,
I want to use use sniff() to return the Dialect. How do I retrive the columns using CSV and make sure it has header and not just direct data.
regards
YesVee
Comment