election_day.utils.vote.ballot
Classes
dict() -> new empty dictionary |
Functions
|
Returns the yeas/nays percentage by entity_id. |
|
Returns the yeas/nays percentage grouped and keyed by district. |
Module Contents
- class election_day.utils.vote.ballot.EntityData[source]
Bases:
typing_extensions.TypedDict
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- election_day.utils.vote.ballot.get_ballot_data_by_entity(ballot: onegov.election_day.models.Ballot) dict[int, EntityData] [source]
Returns the yeas/nays percentage by entity_id.