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.
pip install geodatasetsVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to retrieve the path to a built-in dataset and load it with GeoPandas.
Use 'nybb' (New York City boroughs) or another existing dataset.
Always assign the result to a variable and use `gpd.read_file(path)`.
Refer to the official list of datasets at https://github.com/geopandas/geodatasets#datasets.
Use a different dataset such as 'nybb' (New York boroughs).
Run `pip install geodatasets`.
Use `from geodatasets import get_path`.