Closed dmnapolitano closed 1 month ago
Hi @lennybronner I just pushed the following changes:
unit_category
is now "expected" (instead of "reporting" or "non-reporting");_get_units_without_baseline()
method has been renamed to _get_units_with_baseline_of_zero()
and now units with baseline_turnout == 0
are considered "non-modeled" units as opposed to "unexpected" units;š
Description
Hi! The changes in this PR:
_get_unexpected_units()
is only called once rather than three times (which was once per each of reporting, non-reporting, and unexpected);predictive
indicator in the dataframe of unexpected units, whereTrue
means the unit is genuinely unexpected but predictive, andFalse
means otherwise (currently above/below the turnout factor thresholds);{postal_code : [list of geographic_unit_fips]}
;š
Jira Ticket
ELEX-3394 although this only resolves the "Thoughts" section of the ticket š (Hence "Part 1")
Test Steps
tox
or here's a CLI command that returns one non-predictive unit: