Skip to content

Preserve raw age data and document original sources#298

Open
vahid-ahmadi wants to merge 1 commit intomainfrom
docs/preserve-raw-age-data
Open

Preserve raw age data and document original sources#298
vahid-ahmadi wants to merge 1 commit intomainfrom
docs/preserve-raw-age-data

Conversation

@vahid-ahmadi
Copy link
Collaborator

Summary

  • Changed constituency fill_missing_age_demographics.py to read from raw_age.csv instead of age.csv, matching the existing LA script pattern. This prevents the script from overwriting the original data.
  • Updated both READMEs to document the raw/processed file distinction and link to the original data sources (House of Commons Library for constituencies, ONS for local authorities).

Note: the raw data files (raw_age.csv) were never committed to the repo — the current age.csv files are already processed outputs. This PR ensures the pipeline is correct going forward when someone re-downloads fresh data.

Closes #71.

Test plan

  • Verify fill_missing_age_demographics.py reads from raw_age.csv in both directories
  • Verify READMEs document the data sources and raw/processed distinction

🤖 Generated with Claude Code

The constituency fill_missing_age_demographics.py was reading and
overwriting age.csv in place, losing the original data. Changed to
read from raw_age.csv (matching the LA script pattern). Updated both
READMEs to document the raw/processed distinction and original data
sources.

Closes #71.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include original local areas age files

1 participant