An unofficial consolidation of the Canada Census Profile, 2021 Census of Population into a SQLite database file.
To download and use, see the "Releases" here or in the section on the right, it will contain more information and the download links. The files above are used to generate the database.
The official downloads of the census profile are offered split into multiple multi-gigabyte textual files that are not possible to query directly, and are generally too large to load into memory for tools like Pandas. They are in the legacy ISO-8859-1
(Latin 1) encoding, causing many issues with import tools, and their format is difficult to work with.
The SQLite database allows direct querying, and does not require the entire database to be loaded into memory at once.
Querying can be done against the view cview
, which provides basically the same interface as the StatCan files:
The canonical Census Profile is offered by the Statistics Canada website in English and French in CSV, TAB, and IVT formats for 35 sets of geographic levels, with or without confidence intervals. Of the
- [English; No confidence intervals]
Canada, provinces, territories, census divisions (CDs), census subdivisions (CSDs) and dissemination areas (DAs)
[TAB
]
The database is the consolidation of the six TAB
(tab separated values) files representing the regions Atlantic
, BritishColumbia
, Ontario
, Prairies
, Quebec
, and Territories
offered by the aforementioned download. It is not a consolidation of all data offered by the Census Profile, as French data, confidence intervals, and the geographic levels of CMA
, CA
, CT
, ER
, POPCTR
, FED
, DPL
, ADA
, FSA
, Dissolved CSD
, and HR
are not included in the current dataset.