elex.api.Race

class elex.api.Race(**kwargs)

Canonical representation of a single race, which is a seat in a political geography within a certain election.

serialize()

Implements APElection.serialize().

set_id_field()

Set id to <raceid>.

set_new_england_counties()

Create new CandidateReportingUnits for each New England county that rolls up vote counts and precinct counts / pcts from each township under that county.