def iter_func():
    with open(filename, 'r') as infile:
        for _ in range(skiprows):
            next(infile)
if read_range is None:
    for line in infile:
        line = line.rstrip().split(delimiter)
for item in line:
    yield dtype(item)
else:
    pass
чтение строк большого файла csv в python