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: 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:76eb044a-57ce-6a61-e35b-a4150de444be |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA2A:26D381:38FE854:4B9DBFD:6964A0BE |
| html-safe-nonce | beca99eddb203426fab8957077388fce575b700a43dfc66fc3b9ab93ef9cf888 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTJBOjI2RDM4MTozOEZFODU0OjRCOURCRkQ6Njk2NEEwQkUiLCJ2aXNpdG9yX2lkIjoiODI5MDE1OTQxODUzOTI4NjcxOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 23ae10c3bc6131a6442de75b00483a5455ba7c9cc7775548a94a915bc713e4aa |
| 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 | baa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5 |
| 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 | 842eff1d11f899d02b6b3b98fa3ea4860e64b34e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width