{"id":23101,"library":"geodatasets","title":"GeoDatasets","description":"A collection of sample geospatial datasets for use with GeoPandas and other geospatial libraries in Python, providing easy access through a single `get_path()` function. Current version 2026.1.0, with monthly release cadence.","status":"active","version":"2026.1.0","language":"python","source_language":"en","source_url":"https://github.com/geopandas/geodatasets","tags":["geospatial","sample-data","geo","geopandas"],"install":[{"cmd":"pip install geodatasets","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core dependency for loading and working with geospatial data.","package":"geopandas","optional":false}],"imports":[{"note":"The function is named get_path, not get_data_path.","wrong":"from geodatasets import get_data_path","symbol":"get_path","correct":"from geodatasets import get_path"}],"quickstart":{"code":"from geodatasets import get_path\nimport geopandas as gpd\n\n# Load the New York City boroughs dataset\npath = get_path('nybb')\ngdf = gpd.read_file(path)\nprint(gdf.head())","lang":"python","description":"Demonstrates how to retrieve the path to a built-in dataset and load it with GeoPandas."},"warnings":[{"fix":"Use 'nybb' (New York City boroughs) or another existing dataset.","message":"Dataset 'columbus' (GeoDa Columbus) was removed in version 2023.12.0; using it raises KeyError.","severity":"deprecated","affected_versions":">=2023.12.0"},{"fix":"Always assign the result to a variable and use `gpd.read_file(path)`.","message":"`get_path()` returns a string path, not a GeoDataFrame. You must call `gpd.read_file()` separately.","severity":"gotcha","affected_versions":"all"},{"fix":"Refer to the official list of datasets at https://github.com/geopandas/geodatasets#datasets.","message":"Dataset names are case-sensitive and must be exact (e.g., 'nybb', not 'NYBB' or 'nybb_22a').","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use a different dataset such as 'nybb' (New York boroughs).","cause":"The 'columbus' dataset was removed in geodatasets 2023.12.0.","error":"KeyError: 'columbus'"},{"fix":"Run `pip install geodatasets`.","cause":"The package is not installed.","error":"ModuleNotFoundError: No module named 'geodatasets'"},{"fix":"Use `from geodatasets import get_path`.","cause":"The correct function name is `get_path`, not `get_data_path`.","error":"AttributeError: module 'geodatasets' has no attribute 'get_data_path'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}