July 2018
Beginner to intermediate
146 pages
3h 39m
English
The final step is to create our recommender function. However, before we do that, let's create a reverse mapping of movie titles and their respective indices. In other words, let's create a pandas series with the index as the movie title and the value as the corresponding index in the main DataFrame:
#Construct a reverse mapping of indices and movie titles, and drop duplicate titles, if anyindices = pd.Series(df.index, index=df['title']).drop_duplicates()
We will perform the following steps in building the recommender function:
Read now
Unlock full access