{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "from sklearn.feature_extraction.text import CountVectorizer\n", "from sklearn.metrics.pairwise import cosine_similarity" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", " | cast | \n", "director | \n", "keywords | \n", "overview | \n", "title | \n", "genres | \n", "year | \n", "
---|---|---|---|---|---|---|---|
movieId | \n", "\n", " | \n", " | \n", " | \n", " | \n", " | \n", " | \n", " |
117529 | \n", "['Chris Pratt', 'Bryce Dallas Howard', 'Irrfan... | \n", "Colin Trevorrow | \n", "['monster', 'dna', 'tyrannosaurus rex', 'veloc... | \n", "Twenty-two years after the events of Jurassic ... | \n", "Jurassic World | \n", "['Action', 'Adventure', 'Drama', 'Sci-Fi', 'Th... | \n", "2015 | \n", "