I have a number of supposed csv's but in fact they have some rows with different numbers of fields. I would like to found out which rows these are and look at them. If the csv's weren't broken I would just use pandas and do:
df = pd.read_csv("file.csv")
But this isn't suitable for data cleaning and preprocessing I need to do.
How can I find the number of fields in each row in a "csv" file? Is it, for example, possible to just read in one row at a time, without remembering the number of fields from previous rows?