📊 Add long-run US immigration data (DHS) - #6498
Conversation
|
Quick links (staging server):
Login: chart-diff: ❌
data-diff: ❌ 1 changed · 2 new · 6 identical — full report~ garden/regions/2023-01-01/regions
~ regions.code dim (removed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR
EI_APAC
EI_CIS
(+11 more)
~ regions.defined_by (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: ei
EI_APAC: ei
EI_CIS: ei
(+11 more)
~ regions.is_historical (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: False
EI_APAC: False
EI_CIS: False
(+11 more)
~ regions.members (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: ["AGO", "BDI", "BEN", "BFA", "BWA", "CAF", "CIV", "CMR", "COD", "COG", "COM", "CPV", "DJI", "DZA", "EGY", "ERI", "ESH", "ETH", "GAB", "GHA", "GIN", "GM…
EI_APAC: ["AFG", "ASM", "AUS", "BGD", "BRN", "BTN", "CCK", "CHN", "COK", "CXR", "FJI", "FSM", "GUM", "HKG", "IDN", "IND", "JPN", "KHM", "KIR", "KOR", "LAO", "L…
EI_CIS: ["ARM", "AZE", "BLR", "KAZ", "KGZ", "MDA", "RUS", "TJK", "TKM", "UZB"]
(+11 more)
~ regions.name (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: Africa (EI)
EI_APAC: Asia Pacific (EI)
EI_CIS: CIS (EI)
(+11 more)
~ regions.region_type (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: aggregate
EI_APAC: aggregate
EI_CIS: aggregate
(+11 more)
~ regions.short_name (changed data)
- Removed values: 14 / 436 (3.21%)
EI_AFR: Africa (EI)
EI_APAC: Asia Pacific (EI)
EI_CIS: CIS (EI)
(+11 more)
+ garden/migration/2026-07-22/us_foreign_born_population (new dataset: 4 table(s), 5 column(s))
+ garden/migration/2026-07-22/us_lawful_permanent_residents (new dataset: 3 table(s), 4 column(s))= 6 compared dataset(s) turned out identical; details in the full report Automatically updated datasets matching excess_mortality|covid|fluid|flunet|country_profile|garden/ihme_gbd/2019/gbd_risk are not included. Run locally with Edited: 2026-08-10 12:10:43 UTC |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ad8cd542b4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…e rows are partial The separate Austria and Hungary rows do not cover all years in the 1860s, 1890s, and 1900s (Table 2, footnote 2), so preferring them over the combined row dropped the unallocated remainder (~846k people in total) from the by-country table. Switch from the combined row to the separate rows only from the first decade after which the separate rows always add up to the combined row. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@codex review |
…nces Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…ion bullets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…description bullets Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…, style fixes Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Move the status-grants note below the counting-changes text and keep the description key order aligned with that presentation.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…aveats Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@codex review |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…+ ACS) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…mplate Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This reverts commit 18ca818.
In both by-country tables, people not attributed to a listed country now appear as e.g. "Asia (not specified)" when the source gives their region, with plain "Not specified" kept for the truly unrecorded. The stock dataset's by-country selection is rewritten as an exact-cover walk of the source's hierarchy, so remainders of rows whose sub-rows do not add up (Yugoslavia, Portugal) are captured and every year is asserted to add up to the source's total. Also adds entity annotations for Korea, Czechoslovakia, and Yugoslavia, and corrects the China/Hong Kong bullet. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
New share_by_origin_group table (Africa, Asia, Oceania, Europe, Mexico, Canada, Rest of America, Not specified), as requested for the stacked long-run chart. Also removes the dead pre-walker selection functions. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Part of https://github.com/owid/owid-issues/issues/2467 (long-term migration data for the United States).
Adds two new datasets:
1. Legal permanent residents (flow) —
us_lawful_permanent_residentsThe number of people obtaining legal permanent resident status, from the DHS Yearbook of Immigration Statistics:
Notes:
2. Foreign-born population (stock) —
us_foreign_born_populationThe foreign-born population and its share of the total population, 1850–2024:
Also broken down by country of birth (133 entities) and by region of birth (OWID regions):
Sanity checks pin parsed values and computed shares to figures printed in the working paper (e.g. 1890 = 14.8%, 1970 = 4.7%).
🤖 Generated with Claude Code