mirror of
https://github.com/dataforcanada/d4c-datapkg-statistical.git
synced 2026-06-13 14:10:55 +02:00
Fix mistake in creating pop_ctr Census of Population file. Select distinct pop_ctr_dguid before joining to Census of Pop attribute data
This commit is contained in:
@@ -118866,7 +118866,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"## 4.0 Process Population centres (POPCTRs)\n",
|
"## 4.0 Process Population centres (POPCTRs)\n",
|
||||||
"### There are 1026 DGUIDs in the Census of Population data, but there should be 1030\n",
|
"### There are 1026 DGUIDs in the Census of Population data, but there should be 1030\n",
|
||||||
"They also use the pop_ctr_dguid and not the pop_ctr_p_dguid. So, there's no way to differentiate between Ottawa, and Gatineau for pop_ctr_dguid 2021S05100616"
|
"- They also use the pop_ctr_dguid and not the pop_ctr_p_dguid. So, there's no way to differentiate between Ottawa, and Gatineau for pop_ctr_dguid 2021S05100616"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -118909,7 +118909,7 @@
|
|||||||
"DROP TABLE IF EXISTS er_2021;\n",
|
"DROP TABLE IF EXISTS er_2021;\n",
|
||||||
"\n",
|
"\n",
|
||||||
"DROP TABLE IF EXISTS pop_ctr_2021;\n",
|
"DROP TABLE IF EXISTS pop_ctr_2021;\n",
|
||||||
"CREATE TABLE pop_ctr_2021 AS SELECT pop_ctr_dguid AS dguid FROM 'https://data-01.dataforcanada.org/processed/statistics_canada/boundaries/2021/digital_boundary_files/pop_ctr_2021.parquet';\n",
|
"CREATE TABLE pop_ctr_2021 AS SELECT DISTINCT pop_ctr_dguid AS dguid FROM 'https://data-01.dataforcanada.org/processed/statistics_canada/boundaries/2021/digital_boundary_files/pop_ctr_2021.parquet';\n",
|
||||||
"\"\"\")\n",
|
"\"\"\")\n",
|
||||||
"con.commit()\n",
|
"con.commit()\n",
|
||||||
"\n",
|
"\n",
|
||||||
|
|||||||
Reference in New Issue
Block a user