Last active
November 17, 2021 11:20
-
-
Save rahulbanerjee26/a765b35eba693475f852df78afe2b36d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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