Public
Edited
Apr 15, 2024
Importers
Insert cell
Insert cell
Insert cell
provincesAndTerritories = [
{
full: { en: "Alberta", fr: "Alberta" },
abbrev: { en: "Alta.", fr: "Alb." },
code: "48",
name: "AB"
},
{
full: { en: "British Columbia", fr: "Colombie-Britannique" },
abbrev: { en: "B.C.", fr: "C.-B." },
code: "59",
name: "BC"
},
{
full: { en: "Saskatchewan", fr: "Saskatchewan" },
abbrev: { en: "Sask.", fr: "Sask." },
code: "47",
name: "SK"
},
{
full: { en: "Manitoba", fr: "Manitoba" },
abbrev: { en: "Man.", fr: "Man." },
code: "46",
name: "MB"
},
{
full: { en: "Ontario", fr: "Ontario" },
abbrev: { en: "Ont.", fr: "Ont." },
code: "35",
name: "ON"
},
{
full: { en: "Quebec", fr: "Québec" },
abbrev: { en: "Que.", fr: "Qc" },
code: "24",
name: "QC"
},
{
full: { en: "New Brunswick", fr: "Nouveau-Brunswick" },
abbrev: { en: "N.B.", fr: "N.-B." },
code: "13",
name: "NB"
},
{
full: { en: "Nova Scotia", fr: "Nouvelle-Écosse" },
abbrev: { en: "N.S.", fr: "N.-É." },
code: "12",
name: "NS"
},
{
full: { en: "Prince Edward Island", fr: "Île-du-Prince-Édouard" },
abbrev: { en: "P.E.I.", fr: "Î.-P-É" },
code: "11",
name: "PE"
},
{
full: { en: "Newfoundland and Labrador", fr: "Terre-Neuve-et-Labrador" },
abbrev: { en: "N.L.", fr: "T.-N.-L." },
code: "10",
name: "NL"
},
{
full: { en: "Yukon", fr: "Yukon" },
abbrev: { en: "Yukon", fr: "Yn" },
code: "60",
name: "YT"
},
{
full: { en: "Northwest Territories", fr: "Territoires du Nord-Ouest" },
abbrev: { en: "N.W.T.", fr: "T.N.-O." },
code: "61",
name: "NT"
},
{
full: { en: "Nunavut", fr: "Nunavut" },
abbrev: { en: "Nunavut", fr: "Nt" },
code: "62",
name: "NU"
}
]
Insert cell
provincesAndTerritories.map((d) => ({ PRUID: d.code, province: d.abbrev.en }))
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more