Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivopbernardo/3c5a67fbffe12ceef1971e7e17fd2337 to your computer and use it in GitHub Desktop.
Save ivopbernardo/3c5a67fbffe12ceef1971e7e17fd2337 to your computer and use it in GitHub Desktop.
DareData Blog Post about GeoData
import geopandas as gpd
house_data_gdf = gpd.GeoDataFrame(
house_data,
geometry=gpd.points_from_xy(
house_data.longitude,
house_data.latitude
),
crs="epsg:4326",
)
# Changing the CRS to a Projected Coordinate System ideal for Portugal.
house_data_gdf.to_crs(epsg=3857, inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment