I am following this link. Everything was fine until I imported this.
import scipy.spatial.ckdtree as spsp
After running this by following the instructions given in the link above. I did this
kdtrees = [spsp(p) for p in coordinates]
I got an error:
TypeError: 'module' object is not callable
SO this is what my cooridinates outout looks like:
coordinates = []
for row in result:
coordinates.append(np.array(row, dtype=float))
print coordinates
Output :[array([ 28.6333, 77.2167]), array([ 28.6333, 77.25 ])]
I don't know where I am going wrong. I followed the instructions as it is as given in the link.