I am struggling with this error. This is a part of my code:
for k, v in d.items():
for x,y in zip(df3['0'],df3['1']):
for u,w in zip(v['0'],v['1']):
distance= haversine_np(x,y,u,v)
if distance < 0.03:
print(x,u,y,v,distance)
I am checking the distance between co-ordinates from 1 data frame and co-ordinates of other data frame. For every co-ordinate in my target data frame I am checking the distance between all the co-ordinates of other data frame.
I am new to python. Excuse if the question is too silly. Thanks in advance.