SkillAgentSearch skills...

Redistrict

Gerrymandering and Computational Redistricting

Install / Use

/learn @oliviaguest/Redistrict
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Gerrymandering and Computational Redistricting

For more information, see: Guest, O., Kanayet, F. J., & Love, B. C. (2019). Gerrymandering and Computational Redistricting. Journal of Computational Social Science.

Results

If you are interested in looking at the maps check out the website: http://redistrict.science.

Redistrict a State

run.py is the main script to run. It downloads (if required) and processes relevant data for a state. Afterwards it runs the clustering on the state. And finally, it graphs the state as it is and the results of the clustering. For more information type:

python run.py --help

Examples

For a simple and easy state to run (not super taxing on RAM, etc.), you may try Rhode Island. Type the following and hit return:

python run.py RI

The run.py will now print information to do with the files it will create and the settings it is being run with.

Acknowledgements

Thanks to Logan T. Powell (@logantpowell) who works at the United States Census Bureau for all his patience, help, and support. Also thanks to David Ellis (@Ducksual) and Michael Sumner (@mdsumner) for showing me useful documentation for GIS — and thanks to Grant R. Vousden-Dishington (@usethespacebar) and Dmitrii V. Pasechnik (@dimpase) for pointing me to Cython.

Related Skills

View on GitHub
GitHub Stars31
CategoryDevelopment
Updated23d ago
Forks6

Languages

Jupyter Notebook

Security Score

90/100

Audited on Mar 7, 2026

No findings