Issue 919: Fix too many tracts issue (#922)

* Some cleanup, adding error warning to merge function

* Error handling around tract merge
This commit is contained in:
Lucas Merrill Brown 2021-11-24 16:47:57 -05:00 committed by lucasmbrown-usds
commit a4108d24c0
7 changed files with 105 additions and 70 deletions

View file

@ -220,9 +220,7 @@ class CensusDecennialETL(ExtractTransformLoad):
# Creating Geo ID (Census Block Group) Field Name
self.df_all[self.GEOID_TRACT_FIELD_NAME] = (
self.df_all["state"]
+ self.df_all["county"]
+ self.df_all["tract"]
self.df_all["state"] + self.df_all["county"] + self.df_all["tract"]
)
# Reporting Missing Values