{"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,"search_vec":"'2026.1.0':29 'access':20 'cadenc':33 'collect':3 'current':27 'data':37 'dataset':7 'easi':19 'function':26 'geo':38 'geodataset':1 'geopanda':11,39 'geospati':6,14,34 'get':24 'librari':15 'month':31 'path':25 'provid':18 'python':17 'releas':32 'sampl':5,36 'sample-data':35 'singl':23 'use':9 'version':28","created_at":"2026-05-01T06:02:26.060623+00:00","updated_at":"2026-05-01T06:02:26.060623+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2026.5.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/geopandas/geodatasets","docs":null,"changelog":null,"pypi":"https://pypi.org/project/geodatasets/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["data"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-29","install_tag":null}}