Title: parse error · Issue #20 · talkpython/100daysofcode-with-python-course · GitHub
Open Graph Title: parse error · Issue #20 · talkpython/100daysofcode-with-python-course
X Title: parse error · Issue #20 · talkpython/100daysofcode-with-python-course
Description: The default code throws an error and below code fixes it def get_movies_by_director(): directors = defaultdict(list) with open(MOVIE_DATA, encoding='utf-8') as f: for line in csv.DictReader(f): try: director = line['director_name'] movie...
Open Graph Description: The default code throws an error and below code fixes it def get_movies_by_director(): directors = defaultdict(list) with open(MOVIE_DATA, encoding='utf-8') as f: for line in csv.DictReader(f): try...
X Description: The default code throws an error and below code fixes it def get_movies_by_director(): directors = defaultdict(list) with open(MOVIE_DATA, encoding='utf-8') as f: for line in csv.DictReader...
Opengraph URL: https://github.com/talkpython/100daysofcode-with-python-course/issues/20
X: @github
Domain: redirect.github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"parse error","articleBody":"The default code throws an error and below code fixes it\r\n\r\ndef get_movies_by_director():\r\n directors = defaultdict(list)\r\n with open(MOVIE_DATA, encoding='utf-8') as f:\r\n for line in csv.DictReader(f):\r\n try:\r\n director = line['director_name']\r\n movie = line['movie_title'].replace('\\xa0', '')\r\n if line['title_year']:\r\n year = int(line['title_year'])\r\n else:\r\n year = 0\r\n if line['imdb_score']: \r\n score = float(line['imdb_score'])\r\n else:\r\n score = 0\r\n except ValueError:\r\n continue\r\n\r\n m = Movie(title=movie, year=year, score=score)\r\n directors[director].append(m)\r\n return directors","author":{"url":"https://github.com/prasadseemakurthi","@type":"Person","name":"prasadseemakurthi"},"datePublished":"2018-08-04T18:14:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/20/100daysofcode-with-python-course/issues/20"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d037ecca-1b78-ce5f-7218-5d8b67f76eb7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC70:367724:15FE8BE:1CF6A1B:696B82F2 |
| html-safe-nonce | 2a378828725f6665f169a2d4cae045ccf18e03c3a60ea3ca5a31c35779c52076 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzcwOjM2NzcyNDoxNUZFOEJFOjFDRjZBMUI6Njk2QjgyRjIiLCJ2aXNpdG9yX2lkIjoiNjg2NDA0NTE2NjIxMDI2MDM0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1a5304acd9c285651aa5f9d05103761cd1df9f3ecb56d8daecd69e7912ed1101 |
| hovercard-subject-tag | issue:347637986 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/talkpython/100daysofcode-with-python-course/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/831c90aeb1082a88b68c009772b447c4c015fa7b56e5148ff9966f51be3a114b/talkpython/100daysofcode-with-python-course/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/831c90aeb1082a88b68c009772b447c4c015fa7b56e5148ff9966f51be3a114b/talkpython/100daysofcode-with-python-course/issues/20 |
| og:image:alt | The default code throws an error and below code fixes it def get_movies_by_director(): directors = defaultdict(list) with open(MOVIE_DATA, encoding='utf-8') as f: for line in csv.DictReader(f): try... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prasadseemakurthi |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/talkpython/100daysofcode-with-python-course git https://github.com/talkpython/100daysofcode-with-python-course.git |
| octolytics-dimension-user_id | 21958399 |
| octolytics-dimension-user_login | talkpython |
| octolytics-dimension-repository_id | 114278858 |
| octolytics-dimension-repository_nwo | talkpython/100daysofcode-with-python-course |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 114278858 |
| octolytics-dimension-repository_network_root_nwo | talkpython/100daysofcode-with-python-course |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width