Skip to main content

Redistricting analytics in Python

Project description

rdapy

Redistricting analytics in Python

These are the main analytics used in Dave's Redistricting, ignoring a few DRA-specific aspects (in particular, the five [0-100] ratings). Unlike the analytics in the app (dra-analytics) which are implememented in TypeScript, these are implemented in Python.

Categories

The analytics are organized by area:

  • Compactness: Various measures of compactness
  • Equal: Population deviation
  • Graph: Checks for contiguity & embeddedness
  • Partisan: Various measures of partisan bias & responsiveness, as well as support for rank-vote graphs and seats-votes curves
  • Splitting: County- & district-splitting and COI splitting

Installation

TODO

pip install rdapy

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rdapy-1.0.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

rdapy-1.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file rdapy-1.0.0.tar.gz.

File metadata

  • Download URL: rdapy-1.0.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for rdapy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 342fc53977e51af3210952c286a873b234f6e91b9ea9f32b896cd48e2efcf8b1
MD5 f078c621ae407a8f3249a3f145704f5b
BLAKE2b-256 31e39254df1bc23af88e5738a849ccc70c3794cbca67ba320dd6b9f8f649aa66

See more details on using hashes here.

File details

Details for the file rdapy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rdapy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for rdapy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 eecf953a1b7c45bc1237814fdcf129d1e293000408a91dfdff7cf0ad5c77654c
MD5 4337ce751fef139f4793671e298170f0
BLAKE2b-256 8b4d50ff644b458fcbe5c2051fd13df450820eafe023451ee94173ae581795f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page