Skip to content

[PULL REQUEST] Updated Regional GQ ASE logic for 2010#202

Open
GregorSchroeder wants to merge 1 commit intomainfrom
157-bug-regional-gq-distribution-for-2010
Open

[PULL REQUEST] Updated Regional GQ ASE logic for 2010#202
GregorSchroeder wants to merge 1 commit intomainfrom
157-bug-regional-gq-distribution-for-2010

Conversation

@GregorSchroeder
Copy link
Contributor

Describe this pull request. What changes are being made?

Aligns the @year=2010 logic for the [RELPfield with @year=2011.

What issues does this pull request address?

closes #157

Additional context

Kind of a cool issue wherein we caught an issue in the PUMS documentation and alerted the Census Bureau.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request fixes a divide by zero error in the Regional GQ (Group Quarters) ASE (Age/Sex/Ethnicity) distribution query for the year 2010. The issue was caused by incorrect usage of the RELP field value for 2010 data, which was identified through communication with the Census Bureau that revealed an error in their PUMS documentation.

Changes:

  • Corrected RELP field value for 2010 from '14' to '13' to match 2011 and align with actual Census Bureau PUMS data structure
  • Consolidated year logic using BETWEEN operator for cleaner, more maintainable code
  • Updated TODO comment to accurately reflect the resolution of the divide by zero error

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

[BUG] Regional GQ Distribution for 2010

2 participants