Calculate distance between two coordinates for a fixed point in a DataFrame
Calculate distance between two coordinates for a fixed point in a DataFrame Question: I have the following DataFrame in pandas: code latitude longitude 01 40.410323 -3.993046 02 41.490604 1.696572 03 39.287817 -0.435448 04 38.594316 -0.128489 05 36.900799 -3.423063 06 36.541667 -4.625 I want to create a new column called km_to_fixed_coords in which the distance in …