parsers.burlington2006¶
- parsers.burlington2006(cvr_path: str | Path) Dict[str, List]¶
Function to parse file format used in 2006 Burlington Mayoral Election.
- Parameters:
cvr_path (Union[str, pathlib.Path]) – Path to CVR file. If a file called “candidate_codes.csv” exists in the same directory, it will be read and values from the “code” column that are found in the cvr file ranks will be replaced values in the “candidate” columns.
- Returns:
A dictionary of lists containing informtion in the CVR file. Ranks are combined into per-ballot lists and stored with the key ‘ranks’. A ‘weight’ key and list of 1’s is added to the dictionary if no ‘weight’ column exists. All weights are of type
decimal.Decimal.- Return type:
Dict[str, List]