Say I have two pandas dataframes, both containing x and y coordinates (floats). I want to join the dataframes on the two columns, i.e. where df1['x']==df2['x'] && df1['y']==df2['y'] within some tolerance to get a result like so:
df1=  x  ,  y  ,  tag1 
     1.2   1.3    'ab'
df2=  x  ,  y  ,  tag2 
     1.1   1.2    'cd'
becomes
df_result=  x  ,  y  ,  tag1 , tag2
           1.2   1.3    'ab'   'cd'
In the example the tolerance would be 0.1.
Is this possible with pandas while specifying some tolerance to account for float problems?
Of course, I could iterate, but usually, that is wrong when using pandas.
