How to check if a CSV has a header using Python?
I think the best way to check this is -> simply reading 1st line from file and then match your string instead of any library.
I have a CSV file and I want to check if the first row has only strings in it (ie a header). I'm trying to avoid using any extras like pandas etc. I'm thinking I'll use an if statement like if row[0] is a string print this is a CSV but I don't really know how to do that :-S any suggestions?