I have two dataframes that contain certain x and y values. They correspond to positions of two different objects
First dataframe -
x_value y_value text_value
0         0     A
155      77     B
736     2055    C
769     2073    D
453     2055    E
485     2072    F
168     2055    G
168     1990    H
191     2008    I
452     1989    J
This is the second dataframe -
x_key   y_key   text_key
452     1858    K
167     1792    L
736     1727    M
167     1727    N
241     1745    O
167     1661    P
382     1680    Q
I need to compute the euclidean distance between every (x_value, y_value) and (x_key, y_key) and for the euclidean distance that is the minimum, map the corresponding text_key as a new column in the first dataframe (i.e., dataframe that contains text_value)
EDIT - Dataframe edited to ensure that it is reproducible
