Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geopandas.datasets is deprecated #3043

Merged
merged 1 commit into from
May 7, 2023

Conversation

mattijn
Copy link
Contributor

@mattijn mattijn commented May 6, 2023

This PR change:

fp = gpd.datasets.get_path('naturalearth_lowres')
gdf_ne = gpd.read_file(fp)  # shapefile

into:

url = "https://naciscdn.org/naturalearth/110m/cultural/ne_110m_admin_0_countries.zip"
gdf_ne = gpd.read_file(url)  # zipped shapefile
gdf_ne = gdf_ne[["NAME", "CONTINENT", "POP_EST", 'geometry']]

As the datasets module of the geopandas package is deprecated.
I select a subset of used columns as the original file has more than 160 columns.

@mattijn mattijn merged commit f37a43f into vega:master May 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant