Skip to content

Instantly share code, notes, and snippets.

@douglaspsteen
Created September 5, 2020 18:30
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 douglaspsteen/578712f48c15091597522c223c5c2d50 to your computer and use it in GitHub Desktop.
Save douglaspsteen/578712f48c15091597522c223c5c2d50 to your computer and use it in GitHub Desktop.
# 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