pycensus.census.countries.usa.elections_precinct.unofficial.vest_residual¶
Gap filling for states whose NYT precinct file lacks counties or towns (South Dakota, Vermont) -- ESTIMATED sub-county votes, UNOFFICIAL.
The MEDSL county total minus what the NYT precincts already hold in that county (the shortfall) is spread over the VEST 2020 precinct polygons
(Harvard Dataverse doi:10.7910/DVN/K7760H) that the NYT polygons do not cover, in proportion to each precinct's 2020 presidential votes (Democratic
shortfall by 2020 Democratic votes, Republican by Republican, total by all). Every county therefore keeps its MEDSL county total, and the votes of
a precinct are an allocation, not a count: estimated is True on those rows.
fill(st, base, medsl_votes, cache_dir=None)
¶
base (NYT precincts with county_fips and the three vote columns, unscaled) plus estimated rows for the uncovered VEST polygons.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
st
|
str
|
State abbreviation. |
required |
base
|
GeoDataFrame
|
NYT precincts with votes. |
required |
medsl_votes
|
DataFrame
|
MEDSL votes per precinct. |
required |
cache_dir
|
Cache folder; |
None
|