-
-
Save amankharwal/4b2fb737e6aadb2ee3a9b82dab0bd3a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def BookRecommender(book_name): | |
book_list_name = [] | |
book_id = df2[df2['title'] == book_name].index | |
book_id = book_id[0] | |
for newid in idlist[book_id]: | |
book_list_name.append(df2.loc[newid].title) | |
return book_list_name | |
BookNames = BookRecommender('Harry Potter and the Half-Blood Prince (Harry Potter #6)') | |
BookNames |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment