I am working on a file with 156371992 rows and using the CSV package of python. But it always loads only the first 34739332. It is not throwing any error which I suppose is because the reader is believing to have reached the end of the file which is far from it. I couldn't find anything docs, am adding the code snippet too
has_header = csv.Sniffer().has_header(csvfile.read(1024))
csvfile.seek(0)
reader = csv.reader(csvfile)
if has_header:
next(reader)
print("len of reader", len(list(reader)))
Which always gives 34739332 as value. Any explanations?