FLA Basic Tools
Description:
Set of tools to examine Legislative Maps that are commonly seen in result test cases in VRA suits
Create Block Assignment File
Description:
Creates a csv Block Assigment file with 2 columns (GEOID,DISTRICT) when supplied with a GeoDataFrame with poltical geographies as the geometry column. Creats a shp file with block level feature when supplied witha DataFrame with a GEOID and DISTRICT Columns
assign_baf(baf, state, disid, geoid=None)
- baf - GeoDataFrame with district geometries included or DataFrame with 15 Digit Census Block GEOID column
- state - the State for the Legdistric you are creating a Block Assigment file for.
- geoid - GEOID column NEEDED for DataFrame
- disid - District Name/Number Column
Community Splits
Description:
Uses included 15 digit Census GEOID referne files to find splits in geogrpahy features not included in the standard Census GEOID
community_split(distr, geoid, disid)
- distr - Block Assigment File
- geoid - GEOID column
- disid - District Name/Number Column
Population Overlap PL94
Description:
Find overlap based on population between 2 maps to show shifts in communities between poltical districts
Overlap_old_new(new_districts, geoid='GEOID', district='District', leg=None)
- new_districts - Block Assigment File to compare
- geoid - GEOID column
- disid - District Name/Number Column
- leg - Column from PL94 districts ('CD116','SLDU18','SLDL18')
Population Overlap 2 Maps
Overlap_compare(old_districts, new_districts, data, geoid='GEOID', district='District')
- new_districts - Block Assigment File to compare old_districts
- old_districts - Block Assigment File to compare new_districts
- data - Data to append to the district Dataframes to create the population overlap analysis
- geoid - GEOID column
- disid - District Name/Number Column
CLI Walkthrough
python -m FLABasicTools
Follow The PROMPT
Metadata
Release files for FLABasicTools 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| FLABasicTools-0.1.6.tar.gz | 9.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| FLABasicTools-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.5 kB
Release files / FLABasicTools-0.1.6.tar.gz
| Download URL | FLABasicTools-0.1.6.tar.gz |
|---|---|
| Size | 9.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9389f20e9922d9cb005c99d3f8cbdbfd6b5e71fed81d8f2e70c5fd0e0c5b2b6
|
|
BLAKE2b-256 checksum How to use checksums |
de3a55857fe4ca98402548498f4b759c30ec2967f70d71b6aed980617669d654
|
| 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 / FLABasicTools-0.1.6-py3-none-any.whl
| Download URL | FLABasicTools-0.1.6-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a10bc8aef3187f617417753e0948282355b2803928cb31687fec9d539e65ec8
|
|
BLAKE2b-256 checksum How to use checksums |
a0fa8a73c5a26d56fb4e2a0a9474f48df8a6c5edb9b5b72bc0d15928566cf12f
|
| 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
|