Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise unsupported geography if variable response returns null #29

Open
fgregg opened this issue Oct 22, 2016 · 1 comment
Open

Raise unsupported geography if variable response returns null #29

fgregg opened this issue Oct 22, 2016 · 1 comment

Comments

@fgregg
Copy link
Member

fgregg commented Oct 22, 2016

If you request a variable that is not available at a specific geography, then the response return null. I think this should cause the query to raise a CensusException.

Example: Median monthly housing costs is available as the tract level
http://api.census.gov/data/2014/acs5/?get=B25105_001E&for=tract:*&in=state:17%20county:001

but not at the block group level:

http://api.census.gov/data/2014/acs5/?get=B25105_001E&for=block%20group:*&in=state:17%20county:001%20tract:00100

If @jcarbaugh agrees, then I'll make a PR.

@fgregg
Copy link
Member Author

fgregg commented Oct 24, 2016

There are other reasons, besides, excluded geographies why a variable would be suppressed and return null.

However, this spreadsheet lists the ~600 ACS variables that have geographic restrictions. We could use this as a check.

Personally, I would find it very useful to get an error message saying that a variable was not available at the geography I requested.

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

No branches or pull requests

1 participant