I have a dataframe with 15k rows with coordinates and the names of the locations (mainly businesses)
Your lat1 and lon1 are strings. Maybe you want to replace , with . and convert to float before you calculate the norm:
lat1
lon1
,
.
df[['lat1', 'lon1']] = df[['lat1','lon1']].apply(lambda x: pd.to_numeric(x.str.replace(',','.')) )
2.1m questions
2.1m answers
60 comments
57.0k users