Skip to content

Analysis of California's new 2021 congressional districts using gerrychain.

Notifications You must be signed in to change notification settings

kaeladair/ca-computational-redistricting

Repository files navigation

Analysis of California's 2021 Congressional Districts Using Gerrychain

This project aims to analyze and compare different redistricting plans for the state of California using the GerryChain algorithm. It consists of several Jupyter Notebooks and Python scripts to process and visualize the data.

Table of Contents

  1. Results & Visualizations
  2. Getting Started
  3. Project Structure
  4. Data Sources

Results & Visualizations

Research Poster

Getting Started

To set up the project, follow these steps:

  1. Clone the repository.
  2. Create a Conda environment using the provided conda-environment.yml file:

conda env create -f conda-environment.yml

  1. Activate the environment:

conda activate gerrychain

  1. Run the Jupyter Notebooks in order to process the data and visualize the results.

Project Structure

The project is structured as follows:

  • notebooks/ - Contains Jupyter Notebooks for various stages of the project:
  • data-preparation.ipynb -- Fetches required data from the internet and cleans it.
  • connect-islands.ipynb - Processes the raw data and connects islands in the map.
  • run-gerrychain.ipynb - Runs the GerryChain algorithm on the processed data and creates visualizations.
  • conda-environment.yml - Conda environment file with the required dependencies for the project.
  • README.md - This file.

Data Sources

About

Analysis of California's new 2021 congressional districts using gerrychain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published