for me there was a different number of columns in the file at a certain line. it helped passing names arguement when reading csv (which fixed the column count). fix different column count in file