We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9618b34 commit 3bedaa9Copy full SHA for 3bedaa9
days/04-06-collections/collections.ipynb
@@ -648,7 +648,7 @@
648
" \"\"\"Extracts all movies from csv and stores them in a dictionary\n",
649
" where keys are directors, and values is a list of movies (named tuples)\"\"\"\n",
650
" directors = defaultdict(list)\n",
651
- " with open(data) as f:\n",
+ " with open(data, encoding='utf-8') as f:\n",
652
" for line in csv.DictReader(f):\n",
653
" try:\n",
654
" director = line['director_name']\n",
0 commit comments