mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-07-28 19:21:17 -07:00
Add territory boundary data (#885)
* Add territory boundary data * housing and transp * lint * lint * lint
This commit is contained in:
parent
f00cc5f7b2
commit
0a21fc6b12
5 changed files with 35 additions and 17 deletions
|
@ -72,8 +72,8 @@ class CensusACSETL(ExtractTransformLoad):
|
|||
f"Downloading data for state/territory with FIPS code {fips}"
|
||||
)
|
||||
|
||||
dfs.append(
|
||||
censusdata.download(
|
||||
try:
|
||||
response = censusdata.download(
|
||||
src="acs5",
|
||||
year=self.ACS_YEAR,
|
||||
geo=censusdata.censusgeo(
|
||||
|
@ -91,7 +91,12 @@ class CensusACSETL(ExtractTransformLoad):
|
|||
+ self.LINGUISTIC_ISOLATION_FIELDS
|
||||
+ self.POVERTY_FIELDS,
|
||||
)
|
||||
)
|
||||
except ValueError:
|
||||
logger.error(
|
||||
f"Could not download data for state/territory with FIPS code {fips}"
|
||||
)
|
||||
|
||||
dfs.append(response)
|
||||
|
||||
self.df = pd.concat(dfs)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue