Skip to content

Instantly share code, notes, and snippets.

@douglaspsteen
Created Sep 5, 2020
Embed
What would you like to do?
# Find the 5 nearest neighbors
df_nn = df_dists.sort_values(by=['dist'], axis=0)[:5]
df_nn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment