How to create a column of (x,y) pairs in a data frame
Implementing (x,y) coordinates in 1 column would be unnecessarily complex and hacky. I strongly recommend you make two columns, for example pair1_x and pair1_y. Is there a particular reason you need one column?
I am trying to get a column of (x,y) coordinate pairs in my pandas data frame. I want to be able to access each part of the coordinate. For example, if the title of the column is 'pair1' I want to be able to call pair1[0] and pair1[1] to access the x and y integers respectively. Ultimately, I'd be passing these into a distance function to get the distance between 'pair1' and 'pair2'. Thanks!