Skip to main content

Tool to analyse poltical geogrpahies for maliprortation

Reason this release was yanked:

replaced by VRAresultsTest

Project description

Voter Power Indexes

Vote Power Index provides tools to run both Banzhaf Power Index and Shapley–Shubik Index to analyse 2 party poltical geographies like US Congresstional Districts to see if the reapproation process maintained Mintorities communties to elect their candidate of choice

Usage

power_index(df, OtherPopCol, TargetPopCol, Party1, Party2, vIndex=None, filename=None)

Parameters

df - Pandas Dataframe

OtherPopCol - Majority community

TargetPopCol - Minority community

OtherParty - None colitlition party of choice

ColilitionParty - Colitlition party of choice

vIndex (ssi/bpi/none):

  • None both indexes
  • ssi Shapley–Shubik Index
  • bpi Banzhaf Power Inde

filename - optional

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

rpvVoterIndex-0.2.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

rpvVoterIndex-0.2.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file rpvVoterIndex-0.2.0.tar.gz.

File metadata

  • Download URL: rpvVoterIndex-0.2.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for rpvVoterIndex-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c4c7c27b44162e35fc7f5f81aabd4c76b6d96bce606030583e502c65f96ccefa
MD5 17831234e9b0c1f86fc260a2e35e47c3
BLAKE2b-256 527ee4247191e150c2780156a0677233d8a53d1e4ed30a86526574d1162a2831

See more details on using hashes here.

File details

Details for the file rpvVoterIndex-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: rpvVoterIndex-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.10.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.5

File hashes

Hashes for rpvVoterIndex-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6daf46487717754e15597f35c1ff5527e384f393f0826594e71e66a87bca25f
MD5 51c09a15b361fc23faa9d7f7ce6899f2
BLAKE2b-256 0ab0a63e038fa47d3db97fe3c68c159b76198ca7c6cad93a28669d046fcc2d5c

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