elex.api.ReportingUnit

class elex.api.ReportingUnit(**kwargs)

Canonical representation of a single level of reporting.

pad_fipscode()
serialize()

Implements APElection.serialize().

set_candidate_votepct()

Set vote percentage for each candidate.

set_id_field()

Set id to <reportingunitid>.

set_level()

New England states report at the township level. Every other state reports at the county level. So, change the level from ‘subunit’ to the actual level name, either ‘state’ or ‘township’.

set_votecount()

Set vote count.