Skip to content

Commit

Permalink
Do not drop Guam and USVI from ETL (#1681)
Browse files Browse the repository at this point in the history
* Remove code that drops Guam and USVI from ETL

* Add back code for dropping rows by FIPS code

We may want this functionality, so let's keep it and just make the constant currently be an empty array.

Co-authored-by: Shelby Switzer <shelbyswitzer@gmail.com>
  • Loading branch information
2 people authored and emma-nechamkin committed Aug 11, 2022
1 parent b41a287 commit 3071815
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion data/data-pipeline/data_pipeline/etl/score/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
CENSUS_COUNTIES_COLUMNS = ["USPS", "GEOID", "NAME"]

# Drop FIPS codes from map
DROP_FIPS_CODES = ["66", "78"]
DROP_FIPS_CODES = []

# Drop FIPS codes from incrementing
DROP_FIPS_FROM_NON_WTD_THRESHOLDS = "72"
Expand Down
4 changes: 2 additions & 2 deletions data/data-pipeline/data_pipeline/etl/score/etl_score_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ def _create_tile_data(
tiles_score_column_titles
].copy()

# Currently, we do not want USVI or Guam on the map, so this will drop all
# rows with the FIPS codes (first two digits of the census tract)
# We may not want some states/territories on the map, so this will drop all
# rows with those FIPS codes (first two digits of the census tract)
logger.info(
f"Dropping specified FIPS codes from tile data: {constants.DROP_FIPS_CODES}"
)
Expand Down

0 comments on commit 3071815

Please sign in to comment.