Skip to content

Strick title name #5

@shnkreddy98

Description

@shnkreddy98

I was checking out the movie recommendation code and found out that if the movie_user_likes should match the exact title of the movie or else it gives the following error.. Ok the movie title being strict is alright but it is also case sensitive... for example if i give "the avengers" it will still give the following error.
Traceback (most recent call last):
File "d:/Documents/8sem/Project Phase II/contentbased.py", line 47, in
movie_index = get_index_from_title(movie_user_likes)
File "d:/Documents/8sem/Project Phase II/contentbased.py", line 10, in get_index_from_title
return df[df.title == title]["index"].values[0]
IndexError: index 0 is out of bounds for axis 0 with size 0

so i tried turning the user data into camel case but then again it will show the same error cause the preposition in the title are small case.. I'm pretty much stuck here... I would be thankful to someone who can show me a way around it.. I'm open for new ideas... PLEASE HELP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions