4
This is how I would do it
import pandas as pd
import geopandas as gpd
df = pd.DataFrame()
df['lat'] = [42, 42.1, 43, 43.2, 43.9]
df['lon'] = [-120, -119, -118.2, -118, -117.2]
gdf = gpd.GeoDataFrame(geometry=gpd.points_from_xy(df.lon, df.lat),
crs="EPSG:4326").to_crs("EPSG:6340")
df['distance_from_previous'] = gdf....
Only top voted, non community-wiki answers of a minimum length are eligible
Related Tags
geoprocessing × 1038arcgis-desktop × 357
arcpy × 159
qgis × 130
python × 110
arcgis-10.0 × 103
arcgis-server × 89
arcgis-10.1 × 85
arcobjects × 78
arcmap × 70
arcgis-10.2 × 61
modelbuilder × 58
raster × 39
polygon × 38
c# × 29
shapefile × 28
buffer × 28
clip × 28
arctoolbox × 28
coordinate-system × 26
vector × 25
postgis × 23
.net × 23
arcgis-10.3 × 22
arcgis-javascript-api × 19