for i in range(1, number_lines, chunksize):
    df = pd.read_csv(in_csv, header=None, nrows=chunksize, skiprows=i)
df.to_csv(out_csv, index=False, header=False, mode='a', chunksize=chunksize)
Pandas: Continuously write from function to csv