Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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