split_csv()
Split a CSV file into multiple smaller CSV files.
Usage
split_csv(
input_file,
output_dir,
lines_per_file=5000,
)Parameters
input_file: str-
Path to the CSV file to split.
output_dir: str-
Directory where the split CSV files are written.
lines_per_file: int = 5000- Maximum number of data rows per output file. Default is 5000.