Skip to content
Richard Kapustynskyj

Tag: nearest neighbour

Nearest neighbour speed tests

by RichardPythonPosted on January 22, 2022August 17, 2022No Comments

In my last post “How far is it to the nearest train station?” I shared some code to find the nearest neighbour for each point in a geopandas dataframe to each point in another geopandas dataframe. The bethod involved using the balltree function from sklearn. I want to generalise this method so that, for a …

Read more “Nearest neighbour speed tests”

Copyright © 2025 Richard Kapustynskyj Inspiro Theme by WPZOOM