Skip to main content
100%

ReadBigCsvFile

✓ Published0🌍 Public
JJastor11
Last edited Jan 20, 2025
Created on Dec 11, 2025

This example shows how to process and split a large CSV file into daily chunks by grouping rows based on a datetime column. It uses pandas’ `read_csv` with `chunksize` to load data incrementally, then applies `Grouper` with a daily frequency to partition each chunk. The multiprocessing variant uses `ProcessPoolExecutor` and a dedicated writer `Process` that receives grouped data via a `Queue` for concurrent file output. All writes use `to_csv` with append mode, preserving existing files and headers across runs.

AI-generated description

Similar vizzes