How to compare each dataframe row to each point of a tuple and assign the closest point's index to a new column?

前端 未结 0 470
梦如初夏
梦如初夏 2020-12-01 08:17

Imagine the following dataset:

   X  Y
0  2  4
1  5  6
2  3  4

Now, imagine the following tuple of points: ((2,4), (6,5), (1,14))

How

相关标签:
回答
  • 消灭零回复
提交回复
热议问题