added csv_split

This commit is contained in:
Michael Herman 2014-05-30 09:31:11 -05:00
parent 9828e28fc5
commit 9c02c430f6
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ import argparse
"""
Splits a CSV file into multiple pieces based on command line arguments.
Splits a CSV file into multiple files based on command line arguments.
Arguments:
@ -99,7 +99,7 @@ def parse_file(arguments):
header = all_rows.pop(0)
# Split list of list into chunks
current_chunk = 0
current_chunk = 1
for i in range(0, len(all_rows), row_limit): # Loop through list
chunk = all_rows[i:i + row_limit] # Create single chunk

View File

@ -11,3 +11,4 @@
1. **09_basic_link_web_crawler.py**: web crawler for grabbing links from a website
1. **10_find_files_recursively.py**: recursively grab files from a directory
1. **11_optimize_images_with_wand.py**: recursively grab images from a directory, then optimize them for the web
1. **12_csv_split.py**: Splits a CSV file into multiple files based on command line arguments.