Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_index_from_dvdid(dvdid):
- return df[df["dvdid"]==dvdid].index.tolist()[0]
- def print_similar_dvds(query=None):
- if query:
- found_id = get_index_from_dvdid(query)
- for id in indices[found_id][1:]:
- print(df.loc[id]["dvdid"])
Add Comment
Please, Sign In to add comment