I have a pandas dataframe like below including four columns but two points(lat1,lon1) and (lat2,lon2) per row:
lat1 lon1 lat2 lon2
========= ========= ========= =========
30.172705 31.126725 30.188281 31.132326
30.272805 31.226725 30.288281 31.232326
30.372905 31.326725 30.388281 31.332326
30.472105 31.426725 30.488281 31.432326
30.572205 31.526725 30.588281 31.532326
what is the most efficient way to calculate the distance between (lat1,lon1) and (lat2,lon2) mentioned in each row in KM using geopy
?