I have this df:
latitude_1 longitude_1
0 -25.294871 -56.992654
1 -24.946374 -57.384543
2 -24.835273 -53.825342
3 -24.153553 -54.363844
And the following coordinates:
coords_2 = (-25.236632, -56.835262)
So I want to create a 3rd column in the df that shows the distance between each row with coords_2.
If I try to do it without using Dataframes, it works (here I'm using random numbers):
import geopy.distance
coords_1 = (52.2296756, 21.0122287)
coords_2 = (43.263845, -42.2637377)
print(geopy.distance.distance(coords_1, coords_2).km)
Output:
4691.07078306837
So I want to apply this same logic to a Dataframe.
Thanks