I have two data frame, for example A, and Bwho have more than one column with the name attr1, attr2, attrN.
I have a certain measure of distance, and I would like to combine the data so that each line in Acombined with a string B, which is the shortest distance between attributes. Note that lines in Bmay be repeated when merging.
For example (with one attribute to keep things simple), merging the two tables using absolute difference distance |A.attr1 - B.att1|
A | attr1 B | attr1
0 | 10 0 | 15
1 | 20 1 | 27
2 | 30 2 | 80
the following combined table should be displayed
M | attr1_A attr1_B
0 | 10 15
1 | 20 15
2 | 30 27
A B, , , , .
, , pandas? - , ?
EDIT: , dataframes , , .