File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 5
5
6
6
"""
7
7
8
- Splits a CSV file into multiple pieces based on command line arguments.
8
+ Splits a CSV file into multiple files based on command line arguments.
9
9
10
10
Arguments:
11
11
@@ -99,7 +99,7 @@ def parse_file(arguments):
99
99
header = all_rows .pop (0 )
100
100
101
101
# Split list of list into chunks
102
- current_chunk = 0
102
+ current_chunk = 1
103
103
for i in range (0 , len (all_rows ), row_limit ): # Loop through list
104
104
chunk = all_rows [i :i + row_limit ] # Create single chunk
105
105
Original file line number Diff line number Diff line change 11
11
1 . ** 09_basic_link_web_crawler.py** : web crawler for grabbing links from a website
12
12
1 . ** 10_find_files_recursively.py** : recursively grab files from a directory
13
13
1 . ** 11_optimize_images_with_wand.py** : recursively grab images from a directory, then optimize them for the web
14
+ 1 . ** 12_csv_split.py** : Splits a CSV file into multiple files based on command line arguments.
You can’t perform that action at this time.
0 commit comments