Tool to analyse poltical geogrpahies for maliprortation
Reason this release was yanked:
new version
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rpvVoterIndex-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47ed99e936f5b0b0244713171694b0680ad78c62cfbd1ef03d5c92cea15be62d |
|
MD5 | 9a7ba24e2646f3f347770a541627bf1f |
|
BLAKE2b-256 | 3b4b7439af9cafe123187c4b1ddfe76670f571a740ff0d16078bc7a91bf458af |