Created
May 5, 2022 21:34
-
-
Save ivopbernardo/3c5a67fbffe12ceef1971e7e17fd2337 to your computer and use it in GitHub Desktop.
DareData Blog Post about GeoData
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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