Skip to content

Instantly share code, notes, and snippets.

@myidealab
myidealab / csv_splitter.py
Last active November 20, 2019 16:33 — forked from palewire/csv_splitter.py
A Python CSV splitter
# test
import os
def split(filehandler, delimiter=',', row_limit=10000,
output_name_template='output_%s.csv', output_path='.', keep_headers=True):
"""
Splits a CSV file into multiple pieces.
A quick bastardization of the Python CSV library.