Basic tools for redistrict data used in reports
Reason this release was yanked:
Fixes
Project description
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
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 FLABasicTools-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5e09e2fb63c6d8aaaf9bce3a188c3e297a77931a03ac641481f055f426bbf04 |
|
MD5 | 7924f5cd98cc283b22ee7b7466bfc1de |
|
BLAKE2b-256 | e7c23f759f11c90b21beaff27f94c3bbce6181a5526eb01625810c0834bacb3b |