diff --git a/12_csv_split.py b/12_csv_split.py index ab85322..65c698c 100644 --- a/12_csv_split.py +++ b/12_csv_split.py @@ -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 diff --git a/readme.md b/readme.md index c40c153..9a3a727 100644 --- a/readme.md +++ b/readme.md @@ -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.