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

Missing option for BlockGroups for ACS? #73

Open
stuartlynn opened this issue Jul 22, 2019 · 3 comments
Open

Missing option for BlockGroups for ACS? #73

stuartlynn opened this issue Jul 22, 2019 · 3 comments
Labels
enhancement new level something that would require allowing a new level of the census hierarchy to be fetched.
Milestone

Comments

@stuartlynn
Copy link
Contributor

Trying to get Block Group geometries for the ACS through the products API but it looks as if there is only counties and tracts available just now. Is there a reason for that or has it just now been implemented yet?

https://github.com/cenpy-devs/cenpy/blob/master/cenpy/products.py#L676

@ljwolf
Copy link
Member

ljwolf commented Jul 22, 2019

Should be possible. Need to check/test, but that would involve:

  1. registering the block group layer
  2. adding a query closure to the metaclass that looks just like block but for blockgroup.

I know its feasible, I just didn't add it to this release because of testing & large numbers of empties.

@ljwolf ljwolf added this to the 1.1 milestone Jul 22, 2019
@stuartlynn
Copy link
Contributor Author

Happy to take a stab at it.

@ljwolf ljwolf added enhancement new level something that would require allowing a new level of the census hierarchy to be fetched. labels Jan 7, 2020
@dfolch
Copy link
Contributor

dfolch commented Apr 9, 2020

I was looking for block groups yesterday and came across this issue. A minor issue is the name that should be used in the cenpy API ("bg", "block group", "blockgroup", etc.); the census API uses "block group".

There are a lot of empty cells as @ljwolf notes. Also missing (or hard to find) years:

  • 2009 data can be found in the summary file
In [48]: conn = cenpy.products.APIConnection("ACSSF5Y2009")                                                                                     

In [49]: data = conn.query(["B01001_001E"], geo_unit = 'block group', geo_filter = {"state": "04","county": "019"})
  • I can't find 2010, 2011 or 2012

  • 2013 (and onward) data can be found in the detailed tables

In [62]: conn = cenpy.products.APIConnection("ACSDT5Y2013")                                                                                     

In [63]: data = conn.query(["B01001_001E"], geo_unit = 'block group', geo_filter = {"state": "04","county": "019"})      

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new level something that would require allowing a new level of the census hierarchy to be fetched.
Projects
None yet
Development

No branches or pull requests

3 participants