I am attempting to create a new column in my dataframe that shows the distance between a set latitude and longitude against the latitude and longitude for each row in my dataframe using the line of code below:
df["dist_diff"] = geopy.distance.geodesic((place_lat, place_lon), (df_cat['lat'],df_cat['lng'])).miles
Unfortunately, the above code results in a value error as seen below:
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().