semvec/pypi-packages huggingface dataset:
Racial-Polarized-Voting-Tools 0.1.0
Tool to analyse Racial Polarized Voting
Requires Python: >=3.6, <4

Racial Block Voting Tools
===

## Homogeneous Precinct Analysis
> Homogeneous_Precinct(df, idx, MajorityPopCol, MinorityPopCol, TotalPopCol, MajorityParty, MinorityParty)
## Ecological Regression Analysis
> Ecological_Regression(df, TotalPopCol, MinorityPopCol, MajorityParty, MinorityParty)

df - pandas Dataframe 

MajorityPopCol - Column name for column that has Majority population

MinorityPopCol - Column name for column that has Minority population

TotalPopCol - Column name for column that has Total population

MajorityParty - Column name for column that has Majority Vote

MinorityParty - Column name for column that has Minority Vote