geting this error while executing the scoreon movie recomendatiom
IndexError Traceback (most recent call last) in 10 movies_id=df[df.title==title]["index"].values[0] 11 #print(movies_id) ---> 12 scores=list(enumerate(cosine_sim[movies_id]))
IndexError: only integers, slices (:), ellipsis (...), numpy.newaxis (None) and integer or boolean arrays are valid indices
:
...
None
2.1m questions
2.1m answers
60 comments
57.0k users