Fact-check notebook for a CalMatters story on California lawful permanent resident (green card) adjustment of status data, verifying reporter analysis against DHS state-level data.
Published story: 5 things to know about the Trump administration’s new green card policy
All three claims are verified dynamically using assertion-backed code in fact_check.py:
- In 2023 (the most recent year with final DHS state-level data), 112,100 Californians received green cards through adjustment of status.
- That's more than any other state and nearly one in five (18.5%) of all U.S. adjustments (112,100 / 607,330).
- California has ranked first in the nation every year from 2013–2023.
- File:
state_data_2013-2023_20250514_3.csv - Source: Office of Homeland Security Statistics, U.S. Department of Homeland Security
uv needed to execute notebooks, install uv if not already available
# Interactive notebook
uv run marimo edit fact_check.py
# Read-only output
uv run marimo run fact_check.pyWhile the contents of this repo are shared under an Apache 2.0 license, CalMatters/The Markup would appreciate any credit or attribution you're willing to give. We're also interested to learn how you used it, so feel free to send us a message or open an issue if you do. If you have any questions, feel free to contact us as well.
CalMatters is a nonpartisan, nonprofit journalism venture committed to explaining how California’s state Capitol works and why it matters.
If you have any questions or spot an issues with this analysis, please open an issue on GitHub or send us an email.
We used Claude Code to assist with the prodcution of the README.md. The fact check and results were manually drafted and reviewed by a member of our team.
Code in this repository is licensed under the Apache License, Version 2.0; see LICENSE. Dependency licenses are managed by PyPI packages; see NOTICE.