SkillAgentSearch skills...

Pygris

Use US Census shapefiles in Python (port of the R tigris package)

Install / Use

/learn @walkerke/Pygris
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

pygris

pygris is a Python package to help users access US Census Bureau TIGER/Line and cartographic boundary shapefiles and load them into Python as GeoDataFrames. The goal of the package is to make it simple to access US Census geographic data; data can be acquired with a single function for a given geography (e.g. tracts() for Census tracts) along with a few options.

The package is a general port of the R tigris package with a few modifications. The framework of and philosophy behind the tigris package is covered in Chapter 5 of my book, Analyzing US Census Data: Methods, Maps and Models in R.

Install pygris from PyPI with the following command:

pip install pygris

# For optional dependencies to support interactive examples in the documentation:
# pip install pygris[explore]

Or via conda-forge with:

conda install pygris

# For optional dependencies to support interactive examples in the documentation:
# conda install "pygris[explore]"

Alternatively, install the development version from GitHub:

pip install git+https://github.com/walkerke/pygris.git

Support for installation with conda is forthcoming.

Read the following articles for more information on how to use the package:

View on GitHub
GitHub Stars149
CategoryDevelopment
Updated4d ago
Forks23

Languages

Python

Security Score

95/100

Audited on Mar 24, 2026

No findings