Skip to content

Commit 14b76e0

Browse files
committed
Updated subset notebook.
1 parent 521505d commit 14b76e0

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

chapter2/cleaning/subset.ipynb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"# Only keep one out of 'step' lines ('200' = 0.5%).\n",
5454
"step = 200\n",
5555
"# In every file, stop after 'stop' lines (None=until the end).\n",
56-
"stop = None"
56+
"stop = None # type 400 to test the script and generate tiny subsets."
5757
]
5858
},
5959
{
@@ -165,7 +165,8 @@
165165
" with open(filename, 'wb') as f:\n",
166166
" # Iterate over a subset of the rows from all files.\n",
167167
" for line in _iter_all_lines(files, step=step, stop=stop):\n",
168-
" f.write(line)"
168+
" f.write(line)\n",
169+
" print(\"*** Done! {0} has been successfully created. ***\\n\".format(filename))"
169170
]
170171
},
171172
{
@@ -179,7 +180,8 @@
179180
"cell_type": "code",
180181
"execution_count": null,
181182
"metadata": {
182-
"collapsed": false
183+
"collapsed": false,
184+
"scrolled": true
183185
},
184186
"outputs": [],
185187
"source": [

0 commit comments

Comments
 (0)