Skip to content

Commit 05b054a

Browse files
authored
Update 01_dataframe.ipynb (#264)
I was looking into this and I thought either I am not fully grasping the fn or this is wrong. Since it is using the file itself rather than the fn. so it should have been either for file in files: or then, later on, had used "fn" instead of "file", right? Here's a link to the highlighted part: https://tutorial.dask.org/01_dataframe.html#:~:text=for%20fn%20in%20file%3A%0A%20%20%20%20df%20%3D%20pd.read_csv(os.path.join(%27data%27%2C%20%27nycflights%27%2C%20file))%0A%20%20%20%20maxes.append(df.DepDelay.max())
1 parent 1470d2d commit 05b054a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

01_dataframe.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
"\n",
351351
"maxes = []\n",
352352
"\n",
353-
"for fn in file:\n",
353+
"for file in files:\n",
354354
" df = pd.read_csv(os.path.join('data', 'nycflights', file))\n",
355355
" maxes.append(df.DepDelay.max())\n",
356356
" \n",

0 commit comments

Comments
 (0)