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

The geospatial tutorial is deprecated with the most recent version of geopandas #69

Open
beckynevin opened this issue Jan 7, 2025 · 0 comments

Comments

@beckynevin
Copy link

Hi, I'm loving the geospatial_machine_learning.ipynb tutorial. Just wanted to let you know that geopandas no longer supports the gpd.datasets option and users now have to download data directly from naturalearthdata.com.

`---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in <cell line: 14>()
14 with warnings.catch_warnings():
15 warnings.filterwarnings("ignore", category=FutureWarning)
---> 16 world = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
17 kenya = world[world['name'] == 'Kenya']
18

/usr/local/lib/python3.10/dist-packages/geopandas/datasets/init.py in get_path(dataset)
16 )
17 if dataset in _prev_available:
---> 18 raise AttributeError(error_msg)
19 else:
20 error_msg = (

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/.`

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

1 participant