Skip to content

Instantly share code, notes, and snippets.

@rahulbanerjee26
Last active November 17, 2021 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulbanerjee26/a765b35eba693475f852df78afe2b36d to your computer and use it in GitHub Desktop.
Save rahulbanerjee26/a765b35eba693475f852df78afe2b36d to your computer and use it in GitHub Desktop.
neighbors = space.nearest_neighbors(key="Kizumonogatari II: Nekketsu-hen", num=5)
for neighbor in neighbors:
print( neighbor )
print( anime_list[anime_list['name'] == neighbor]['genre'] )
'''
Output
Durarara!!
166 Action, Mystery, Supernatural
Durarara!!x2 Ten
391 Action, Mystery, Supernatural
Durarara!!x2 Shou: Watashi no Kokoro wa Nabe Moyou
709 Action, Mystery, Supernatural
Durarara!!x2 Ketsu: Dufufufu!!
1010 Action, Mystery, Supernatural
Trinity Blood
1805 Action, Supernatural, Vampire
'''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment