Comments (3)
IIRC, while the Census collects data at the block level, they only report at the block-group level and above.
from census.
No, their API does provide block-level data for some datasets. For example, the 2020 Redistricting Data Summary File (PL 94-171) has block-level data.
You can test this for yourself by adding the following function to core.py:
@supported_years()
def state_county_block(self, fields, state_fips, county_fips, block, tract=None, **kwargs):
geo = {
'for': 'block:{}'.format(block),
'in': 'state:{} county:{}'.format(state_fips, county_fips),
}
if tract:
geo['in'] += ' tract:{}'.format(tract)
return self.get(fields, geo=geo, **kwargs)
And then running a query like this:
data = c.pl.state_county_block(
('NAME', 'P1_001N'), # table
'29', # state
'189', # county
Census.ALL, # blockgroup
year='2020'
)
from census.
@Kirkman mind if I copy this and do a pull request?
from census.
Related Issues (20)
- ACS5 income missing many values in 2015 HOT 2
- Support for ACS 2020 data HOT 3
- use census data discovery api to get data endpoints
- Returns API Key Error even though key provided is correct HOT 1
- How to cite this package HOT 1
- 2021 ACS 5 Year release not supported HOT 3
- How to get subject data(S table)?
- Does it has feature for getting specific tables variable?
- 2020 and 2000 SF1 Support
- Unable to get API Key? api.census.gov times out?
- Support for years 2005-2009 in ACS1 HOT 2
- Find Congressional District Data Via API
- use data discovery endpoint to auto-update available censuses HOT 1
- Need to `_switch_endpoints` on `fields`
- pre-2013 ACS5 Block Group Data Error HOT 2
- `KeyError: 'long'` when querying ACS 5 HOT 6
- KeyError: Long HOT 3
- Crashing with recent census change
- Package does not work on Python 3.12 pkg_resources
- subject table does not support 2022 data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from census.