Skip to content

Commit 3bedaa9

Browse files
committed
add encoding='utf-8' to open csv file (issue 3)
1 parent 9618b34 commit 3bedaa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

days/04-06-collections/collections.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@
648648
" \"\"\"Extracts all movies from csv and stores them in a dictionary\n",
649649
" where keys are directors, and values is a list of movies (named tuples)\"\"\"\n",
650650
" directors = defaultdict(list)\n",
651-
" with open(data) as f:\n",
651+
" with open(data, encoding='utf-8') as f:\n",
652652
" for line in csv.DictReader(f):\n",
653653
" try:\n",
654654
" director = line['director_name']\n",

0 commit comments

Comments
 (0)