Skip to content

Commit

Permalink
Fix 'tuple indices must be integers or slices, not str' error in solu…
Browse files Browse the repository at this point in the history
…tion.ipynb
  • Loading branch information
carlotta94c authored Dec 1, 2023
1 parent b26b503 commit 341afd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 08-building-search-applications/solution.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
" return f\"https://youtu.be/{video_id}?t={seconds}\"\n",
"\n",
" print(f\"\\nVideos similar to '{query}':\")\n",
" for row in videos.iterrows():\n",
" for _, row in videos.iterrows():\n",
" youtube_url = _gen_yt_url(row[\"videoId\"], row[\"seconds\"])\n",
" print(f\" - {row['title']}\")\n",
" print(f\" Summary: {' '.join(row['summary'].split()[:15])}...\")\n",
Expand Down

0 comments on commit 341afd4

Please sign in to comment.