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.dataset has been deprecated #224

Open
s-martiz opened this issue Sep 12, 2024 · 1 comment
Open

geopandas.dataset has been deprecated #224

s-martiz opened this issue Sep 12, 2024 · 1 comment

Comments

@s-martiz
Copy link

Hello
When I try to run the notebook, I can't have access to the exemple database :

from topojson import Topology
import geopandas as gpd

africa = gpd.read_file(gpd.datasets.get_path("naturalearth_lowres")).query('continent == "Africa"')
AttributeError: The geopandas.dataset has been deprecated and was removed in GeoPandas 1.0. You can get the original 'naturalearth_lowres' data from https://www.naturalearthdata.com/downloads/110m-cultural-vectors/.

any solution ?

@mmann1123
Copy link

mmann1123 commented Jan 10, 2025

It looks like you can read from the urls here e.g.

gdf = gpd.read_file(
    "https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_50m_admin_0_countries.geojson"
)

Closes #224

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

No branches or pull requests

2 participants