Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Reason given by maintainers: replaced by VRAresultsTest

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

Metadata

Release files for rpvVoterIndex 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rpvVoterIndex 0.2.0
File Size Uploaded
rpvVoterIndex-0.2.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for rpvVoterIndex 0.2.0
File Interpreter ABI Platform
rpvVoterIndex-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / rpvVoterIndex-0.2.0.tar.gz

Download URL rpvVoterIndex-0.2.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c4c7c27b44162e35fc7f5f81aabd4c76b6d96bce606030583e502c65f96ccefa
BLAKE2b-256 checksum
How to use checksums
527ee4247191e150c2780156a0677233d8a53d1e4ed30a86526574d1162a2831
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / rpvVoterIndex-0.2.0-py3-none-any.whl

Download URL rpvVoterIndex-0.2.0-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f6daf46487717754e15597f35c1ff5527e384f393f0826594e71e66a87bca25f
BLAKE2b-256 checksum
How to use checksums
0ab0a63e038fa47d3db97fe3c68c159b76198ca7c6cad93a28669d046fcc2d5c
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page