Other Data
All Canadian federal elections
A CSV file
containing information about each federal election, one row per election.
It has the following columns. Many people will be focused primarily on recent elections and may
wonder why the “Labour_votes” column isn’t simply labeled “NDP_votes”. While that works for
recent elections, there have been labour-oriented parties in Canada for much longer than the NDP.
Where should they go? It’s not practical to have one column for each party, so some grouping is
necessary.
Note that the “Labour_votes” column may contain more than just the NDP! For example, the
Communists, Marxist-Leninists, Work Less Party are all considered labour-oriented. The fundamental
assumption is that if you’re using this file, you’re doing something across 150+ years of
history. If you’re doing something that’s dependent on only modern parties you should be
using other files.
- election_id: A sequence number for the election: 1 for the first one in
1867, 2 for the second one in 1872, etc.
- election_date: The date the bulk of the election was held. Some early elections were
held on different days in different regions of the country.
- Con_votes: The number of votes received by parties considered to be conservative.
- Env_votes: The number of votes received by parties considered to be environmental (e.g. Greens).
- Labour_votes: The number of votes received by parties considered to be labour-oriented (e.g. NDP).
- Oth_votes: The number of votes received by parties or candidates considered to be other than those listed here.
Independent candidates go here.
- Pop_votes: The number of votes received by parties considered to be populist.
- Quebec_votes: The number of votes received by parties considered to be Quebec-nationalist (e.g. the Bloc).
- SglIss_votes: The number of votes received by parties considered to be single-issue parties (e.g. Animal Protection).
- Con_seats: The number of seats received by parties considered to be conservative.
- Env_seats: The number of seats received by parties considered to be environmental (e.g. Greens).
- Labour_seats: The number of seats received by parties considered to be labour-oriented (e.g. NDP).
- Oth_seats: The number of seats received by parties or candidates considered to be other than those listed here.
Independent candidates go here.
- Pop_seats: The number of seats received by parties considered to be populist.
- Quebec_seats: The number of seats received by parties considered to be Quebec-nationalist (e.g. the Bloc).
- SglIss_seats: The number of seats received by parties considered to be single-issue parties (e.g. Animal Protection).
- 1st: The ideological grouping that captured the most seats.
- 2nd: The ideological grouping that captured the second most seats.
- 3rd: The ideological grouping that captured the third most seats.
Party summary
A CSV file
containing information about each party that has run candidates in a federal election, going
back to 1867.
It has the following columns:
- party_id: A unique identifying number for each party.
- party_name: The harmonized name used for the party. For more information, see
Data Cleaning.
- party_short_name: A very abbreviated name used in column headings.
- ideology_code: An attempt to collapse similar parties for use in
all_elections.csv.
Feedback on these codes and their assignments is very welcome. The codes are:
- Con = Conservative (e.g. Conservative Party of Canada, Progressive Conservative Party)
- Env = Environmental focus (e.g. Green Party)
- Labour = A focus on workers (e.g. NDP, Progressive Workers Movement, Marxist-Leninist)
- Lib = Liberal
- Oth = Other (A collection of smaller parties for which a better label was not
immediately evident. Includes Independents.)
- Pop = Populist (e.g. People’s Party, Canadian Action Party)
- Quebec (Parties, such as the Bloc, that are focused on Quebec nationalism.)
- SglIss = Single Issue parties (e.g. Animal protection, anti-conscription, seniors)
- mainstream: A boolean value, true if the party has ever attracted at least 5% of
the vote (in any election); false otherwise. This is used to determine which parties have
their own column in the individual election CSV files.
- first_election: The election_id for the first election in which this party ran candidates.
- last_election: The election_id for the last election in which this party ran candidates.
- num_candidates: The total number of candidates, across all elections, this party has run.
- also_known_as: Other names this party has been known by in the Elections Canada data.
See Data Cleaning.