From 69b707283e42aa4250a116dd95a2d65afcb92205 Mon Sep 17 00:00:00 2001 From: matt bowen Date: Tue, 11 Oct 2022 10:48:12 -0400 Subject: [PATCH 1/5] Add "Is a Tribal DAC" field (#1998) --- .../data_pipeline/etl/sources/tribal_overlap/etl.py | 13 +++++++++++-- .../data_pipeline/score/field_names.py | 3 +++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py b/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py index e03da05c2..126f78db5 100644 --- a/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py +++ b/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py @@ -48,6 +48,7 @@ class TribalOverlapETL(ExtractTransformLoad): ANNETTE_ISLAND_TRIBAL_NAME = "Annette Island LAR" CRS_INTEGER = 3857 + TRIBAL_OVERLAP_CUTOFF = 0.9995 # Percentage of overlap that rounds to 100% # Define these for easy code completion def __init__(self): @@ -58,6 +59,7 @@ def __init__(self): field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT, field_names.NAMES_OF_TRIBAL_AREAS_IN_TRACT, field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT_DISPLAY, + field_names.IS_TRIBAL_DAC, ] self.OVERALL_TRIBAL_COUNT = "OVERALL_TRIBAL_COUNT" @@ -72,8 +74,9 @@ def _create_string_from_list(series: pd.Series) -> str: str_list = sorted(str_list) return ", ".join(str_list) - @staticmethod + @classmethod def _adjust_percentage_for_frontend( + cls, percentage_float: float, ) -> Optional[float]: """Round numbers very close to 0 to 0 and very close to 1 to 1 for display""" @@ -81,7 +84,7 @@ def _adjust_percentage_for_frontend( return None if percentage_float < 0.01: return 0.0 - if percentage_float > 0.9995: + if percentage_float > cls.TRIBAL_OVERLAP_CUTOFF: return 1.0 return percentage_float @@ -246,6 +249,12 @@ def transform(self) -> None: field_names.COUNT_OF_TRIBAL_AREAS_IN_TRACT_CONUS ] = None + merged_output_df[field_names.IS_TRIBAL_DAC] = np.where( + merged_output_df[field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT] + > self.TRIBAL_OVERLAP_CUTOFF, + True, + False, + ) # The very final thing we want to do is produce a string for the front end to show # We do this here so that all of the logic is included merged_output_df[ diff --git a/data/data-pipeline/data_pipeline/score/field_names.py b/data/data-pipeline/data_pipeline/score/field_names.py index 485b1bc8f..42ffa75e8 100644 --- a/data/data-pipeline/data_pipeline/score/field_names.py +++ b/data/data-pipeline/data_pipeline/score/field_names.py @@ -368,6 +368,9 @@ PERCENT_OF_TRIBAL_AREA_IN_TRACT_DISPLAY = ( "Percent of the Census tract that is within Tribal areas, for display" ) +IS_TRIBAL_DAC = ( + "Is this tract a DAC because it is (nearly) entirely tribal land?" +) ##### # Names for individual factors being exceeded From a4083f3bfbd6c3d1e624872b8887e3b01527ff73 Mon Sep 17 00:00:00 2001 From: matt bowen Date: Tue, 11 Oct 2022 14:00:15 -0400 Subject: [PATCH 2/5] Add tribal DACs to score N final (#1998) --- .../data_pipeline/etl/score/etl_score.py | 1 + .../data_pipeline/score/field_names.py | 1 + .../data_pipeline/score/score_narwhal.py | 32 +++++++++++++++++++ 3 files changed, 34 insertions(+) diff --git a/data/data-pipeline/data_pipeline/etl/score/etl_score.py b/data/data-pipeline/data_pipeline/etl/score/etl_score.py index aec33aa9f..b6c8c4079 100644 --- a/data/data-pipeline/data_pipeline/etl/score/etl_score.py +++ b/data/data-pipeline/data_pipeline/etl/score/etl_score.py @@ -505,6 +505,7 @@ def _prepare_initial_df(self) -> pd.DataFrame: field_names.IMPUTED_INCOME_FLAG_FIELD_NAME, field_names.ELIGIBLE_FUDS_BINARY_FIELD_NAME, field_names.HISTORIC_REDLINING_SCORE_EXCEEDED, + field_names.IS_TRIBAL_DAC, ] # For some columns, high values are "good", so we want to reverse the percentile diff --git a/data/data-pipeline/data_pipeline/score/field_names.py b/data/data-pipeline/data_pipeline/score/field_names.py index 42ffa75e8..cea51d188 100644 --- a/data/data-pipeline/data_pipeline/score/field_names.py +++ b/data/data-pipeline/data_pipeline/score/field_names.py @@ -371,6 +371,7 @@ IS_TRIBAL_DAC = ( "Is this tract a DAC because it is (nearly) entirely tribal land?" ) +PERCENT_OF_TRACT_IS_DAC = "Percent of the Census tract that is a DAC." ##### # Names for individual factors being exceeded diff --git a/data/data-pipeline/data_pipeline/score/score_narwhal.py b/data/data-pipeline/data_pipeline/score/score_narwhal.py index 5abf60537..f7fcc92db 100644 --- a/data/data-pipeline/data_pipeline/score/score_narwhal.py +++ b/data/data-pipeline/data_pipeline/score/score_narwhal.py @@ -997,6 +997,33 @@ def _mark_donut_hole_tracts(self) -> pd.DataFrame: ] ) + def _mark_tribal_dacs(self) -> None: + """Per the October 7th compromise (#1988), + tracts that are approx 100% tribal are Score N communities. + """ + self.df[field_names.SCORE_N_COMMUNITIES] = np.where( + self.df[field_names.IS_TRIBAL_DAC], + True, + self.df[field_names.SCORE_N_COMMUNITIES], + ) + + def _get_percent_of_tract_that_is_dac(self) -> float: + """Per the October 7th compromise (#1988), + tracts can be partially DACs if some portion of the tract is tribal land. + + Rules are as follows: + If a tract is a SCORE_N_COMMUNITY, it is 100% a DAC + If a tract is not, but contains tribal land, the percent that is tribal land is a DAC. + """ + tribal_percent = self.df[ + field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT + ].fillna(0) + return np.where( + self.df[field_names.FINAL_SCORE_N_BOOLEAN], + 1.0, + tribal_percent, + ) + def add_columns(self) -> pd.DataFrame: logger.info("Adding Score Narhwal") self.df[field_names.THRESHOLD_COUNT] = 0 @@ -1031,10 +1058,15 @@ def add_columns(self) -> pd.DataFrame: ] self.df[field_names.CATEGORY_COUNT] = self.df[factors].sum(axis=1) self.df[field_names.SCORE_N_COMMUNITIES] = self.df[factors].any(axis=1) + self._mark_tribal_dacs() self.df[ field_names.SCORE_N_COMMUNITIES + field_names.PERCENTILE_FIELD_SUFFIX ] = self.df[field_names.SCORE_N_COMMUNITIES].astype(int) + self._mark_donut_hole_tracts() + self.df[ + field_names.PERCENT_OF_TRACT_IS_DAC + ] = self._get_percent_of_tract_that_is_dac() return self.df From bfd7b08f23a44062dea064053b98846843e1433e Mon Sep 17 00:00:00 2001 From: matt bowen Date: Wed, 12 Oct 2022 09:42:42 -0400 Subject: [PATCH 3/5] Add new fields to downloads (#1998) --- .../data_pipeline/content/config/csv.yml | 6 ++++++ .../data_pipeline/content/config/excel.yml | 6 ++++++ .../data_pipeline/etl/score/constants.py | 3 +++ .../tests/sample_data/score_data_initial.csv | 6 +++--- .../snapshots/downloadable_data_expected.pkl | Bin 17313 -> 17554 bytes .../tests/snapshots/score_data_expected.pkl | Bin 21471 -> 21655 bytes .../snapshots/score_transformed_expected.pkl | Bin 22246 -> 22390 bytes .../tests/snapshots/tile_data_expected.pkl | Bin 4888 -> 4955 bytes .../etl/sources/tribal_overlap/etl.py | 2 +- .../data_pipeline/score/field_names.py | 6 ++---- 10 files changed, 21 insertions(+), 8 deletions(-) diff --git a/data/data-pipeline/data_pipeline/content/config/csv.yml b/data/data-pipeline/data_pipeline/content/config/csv.yml index 120794117..e0a5beeed 100644 --- a/data/data-pipeline/data_pipeline/content/config/csv.yml +++ b/data/data-pipeline/data_pipeline/content/config/csv.yml @@ -59,9 +59,15 @@ fields: - score_name: Definition N (communities) (based on adjacency index and low income alone) label: Identified as disadvantaged based on neighbors and relaxed low income threshold only format: bool +- score_name: Identified as disadvantaged due to tribal overlap + label: Identified as disadvantaged due to tribal overlap + format: bool - score_name: Definition N community, including adjacency index tracts label: Identified as disadvantaged format: bool +- score_name: Percentage of tract that is disadvantaged + label: Percentage of tract that is disadvantaged + format: percentage - score_name: Definition N (communities) (average of neighbors) label: Share of neighbors that are identified as disadvantaged format: percentage diff --git a/data/data-pipeline/data_pipeline/content/config/excel.yml b/data/data-pipeline/data_pipeline/content/config/excel.yml index 0ada16506..2b8437e41 100644 --- a/data/data-pipeline/data_pipeline/content/config/excel.yml +++ b/data/data-pipeline/data_pipeline/content/config/excel.yml @@ -63,9 +63,15 @@ sheets: - score_name: Definition N (communities) (based on adjacency index and low income alone) label: Identified as disadvantaged based on neighbors and relaxed low income threshold only format: bool + - score_name: Identified as disadvantaged due to tribal overlap + label: Identified as disadvantaged due to tribal overlap + format: bool - score_name: Definition N community, including adjacency index tracts label: Identified as disadvantaged format: bool + - score_name: Percentage of tract that is disadvantaged + label: Percentage of tract that is disadvantaged + format: percentage - score_name: Definition N (communities) (average of neighbors) label: Share of neighbors that are identified as disadvantaged format: percentage diff --git a/data/data-pipeline/data_pipeline/etl/score/constants.py b/data/data-pipeline/data_pipeline/etl/score/constants.py index 3bfad7ed3..e72cc0bde 100644 --- a/data/data-pipeline/data_pipeline/etl/score/constants.py +++ b/data/data-pipeline/data_pipeline/etl/score/constants.py @@ -279,6 +279,8 @@ field_names.SCORE_N_COMMUNITIES + field_names.ADJACENT_MEAN_SUFFIX: "SN_DON", field_names.SCORE_N_COMMUNITIES: "SN_NO_DON", + field_names.IS_TRIBAL_DAC: "SN_T", + field_names.PERCENT_OF_TRACT_IS_DAC: "SN_PERC", field_names.EXPECTED_POPULATION_LOSS_RATE_LOW_INCOME_FIELD: "EPLRLI", field_names.EXPECTED_AGRICULTURE_LOSS_RATE_LOW_INCOME_FIELD: "EALRLI", field_names.EXPECTED_BUILDING_LOSS_RATE_LOW_INCOME_FIELD: "EBLRLI", @@ -472,4 +474,5 @@ field_names.AML_BOOLEAN, field_names.HISTORIC_REDLINING_SCORE_EXCEEDED, field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT, + field_names.PERCENT_OF_TRACT_IS_DAC, ] diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/sample_data/score_data_initial.csv b/data/data-pipeline/data_pipeline/etl/score/tests/sample_data/score_data_initial.csv index 4ab78f23a..e8b6c06a2 100644 --- a/data/data-pipeline/data_pipeline/etl/score/tests/sample_data/score_data_initial.csv +++ b/data/data-pipeline/data_pipeline/etl/score/tests/sample_data/score_data_initial.csv @@ -1,3 +1,3 @@ -GEOID10_TRACT,Does the tract have at least 35 acres in it?,Contains agricultural value,Names of Tribal areas within Census tract,Housing burden (percent),Share of homes with no kitchen or indoor plumbing (percent),Total population,Median household income (% of state median household income),Current asthma among adults aged greater than or equal to 18 years,Coronary heart disease among adults aged greater than or equal to 18 years,Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years,Current lack of health insurance among adults aged 18-64 years,Diagnosed diabetes among adults aged greater than or equal to 18 years,Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years,Percent of individuals < 100% Federal Poverty Line,Percent of individuals < 150% Federal Poverty Line,Percent of individuals below 200% Federal Poverty Line,Area Median Income (State or metropolitan),Median household income in the past 12 months,Energy burden,FEMA Risk Index Expected Annual Loss Score,Urban Heuristic Flag,Air toxics cancer risk,Respiratory hazard index,Diesel particulate matter exposure,PM2.5 in the air,Ozone,Traffic proximity and volume,Proximity to Risk Management Plan (RMP) facilities,Proximity to hazardous waste sites,Proximity to NPL sites,Wastewater discharge,Percent pre-1960s housing (lead paint indicator),Individuals under 5 years old,Individuals over 64 years old,Linguistic isolation (percent),Percent of households in linguistic isolation,Poverty (Less than 200% of federal poverty line),Percent individuals age 25 or over with less than high school degree,Unemployment (percent),Median value ($) of owner-occupied housing units,Percent enrollment in college or graduate school,Percent of population not currently enrolled in college or graduate school,Expected building loss rate (Natural Hazards Risk Index),Expected agricultural loss rate (Natural Hazards Risk Index),Expected population loss rate (Natural Hazards Risk Index),Percent individuals age 25 or over with less than high school degree in 2009,Percentage households below 100% of federal poverty line in 2009,Unemployment (percent) in 2009,Unemployment (percent) in 2010,Percent of individuals less than 100% Federal Poverty Line in 2010,Total population in 2009,Leaky underground storage tanks,DOT Travel Barriers Score,Share of properties at risk of flood in 30 years,Share of properties at risk of fire in 30 years,Share of the tract's land area that is covered by impervious surface or cropland as a percent,"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted",Percent Black or African American,Percent American Indian / Alaska Native,Percent Asian,Percent Native Hawaiian or Pacific,Percent two or more races,Percent White,Percent Hispanic or Latino,Percent other races,Percent age under 10,Percent age 10 to 64,Percent age over 64,Percent of the Census tract that is within Tribal areas,Number of Tribal areas within Census tract for Alaska,Number of Tribal areas within Census tract,"Percent of the Census tract that is within Tribal areas, for display",Median household income as a percent of area median income,Life expectancy (years),Median household income as a percent of territory median income in 2009,Is there at least one abandoned mine in this census tract?,Income data has been estimated based on neighbor income,Is there at least one Formerly Used Defense Site (FUDS) in the tract?,Tract-level redlining score meets or exceeds 3.25,Housing burden (percent) (percentile),Share of homes with no kitchen or indoor plumbing (percent) (percentile),Total population (percentile),Median household income (% of state median household income) (percentile),Current asthma among adults aged greater than or equal to 18 years (percentile),Coronary heart disease among adults aged greater than or equal to 18 years (percentile),Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile),Current lack of health insurance among adults aged 18-64 years (percentile),Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile),Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile),Percent of individuals < 100% Federal Poverty Line (percentile),Percent of individuals < 150% Federal Poverty Line (percentile),Percent of individuals below 200% Federal Poverty Line (percentile),Area Median Income (State or metropolitan) (percentile),Median household income in the past 12 months (percentile),Energy burden (percentile),FEMA Risk Index Expected Annual Loss Score (percentile),Urban Heuristic Flag (percentile),Air toxics cancer risk (percentile),Respiratory hazard index (percentile),Diesel particulate matter exposure (percentile),PM2.5 in the air (percentile),Ozone (percentile),Traffic proximity and volume (percentile),Proximity to Risk Management Plan (RMP) facilities (percentile),Proximity to hazardous waste sites (percentile),Proximity to NPL sites (percentile),Wastewater discharge (percentile),Percent pre-1960s housing (lead paint indicator) (percentile),Individuals under 5 years old (percentile),Individuals over 64 years old (percentile),Linguistic isolation (percent) (percentile),Percent of households in linguistic isolation (percentile),Poverty (Less than 200% of federal poverty line) (percentile),Percent individuals age 25 or over with less than high school degree (percentile),Unemployment (percent) (percentile),Median value ($) of owner-occupied housing units (percentile),Percent enrollment in college or graduate school (percentile),Percent of population not currently enrolled in college or graduate school (percentile),Expected building loss rate (Natural Hazards Risk Index) (percentile),Expected agricultural loss rate (Natural Hazards Risk Index) (percentile),Expected population loss rate (Natural Hazards Risk Index) (percentile),Percent individuals age 25 or over with less than high school degree in 2009 (percentile),Percentage households below 100% of federal poverty line in 2009 (percentile),Unemployment (percent) in 2009 (percentile),Unemployment (percent) in 2010 (percentile),Percent of individuals less than 100% Federal Poverty Line in 2010 (percentile),Total population in 2009 (percentile),Leaky underground storage tanks (percentile),DOT Travel Barriers Score (percentile),Share of properties at risk of flood in 30 years (percentile),Share of properties at risk of fire in 30 years (percentile),Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile),"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted (percentile)",Percent Black or African American (percentile),Percent American Indian / Alaska Native (percentile),Percent Asian (percentile),Percent Native Hawaiian or Pacific (percentile),Percent two or more races (percentile),Percent White (percentile),Percent Hispanic or Latino (percentile),Percent other races (percentile),Percent age under 10 (percentile),Percent age 10 to 64 (percentile),Percent age over 64 (percentile),Percent of the Census tract that is within Tribal areas (percentile),Number of Tribal areas within Census tract for Alaska (percentile),Number of Tribal areas within Census tract (percentile),"Percent of the Census tract that is within Tribal areas, for display (percentile)",Percent Black or African American in 2009 (percentile),Percent American Indian / Alaska Native in 2009 (percentile),Percent Asian in 2009 (percentile),Percent Native Hawaiian or Pacific in 2009 (percentile),Percent two or more races in 2009 (percentile),Percent White in 2009 (percentile),Percent Hispanic or Latino in 2009 (percentile),Percent other races in 2009 (percentile),Low median household income as a percent of area median income (percentile),Low life expectancy (percentile),Low median household income as a percent of territory median income in 2009 (percentile),Total population in 2009 (island areas) and 2019 (states and PR),Total threshold criteria exceeded,Is low income (imputed and adjusted)?,Greater than or equal to the 90th percentile for expected population loss,Greater than or equal to the 90th percentile for expected agricultural loss,Greater than or equal to the 90th percentile for expected building loss,Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years,Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years,At least one climate threshold exceeded,Greater than or equal to the 90th percentile for expected population loss rate and is low income?,Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?,Greater than or equal to the 90th percentile for expected building loss rate and is low income?,Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?,Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?,Climate Factor (Definition N),Greater than or equal to the 90th percentile for energy burden,Greater than or equal to the 90th percentile for pm2.5 exposure,At least one energy threshold exceeded,Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?,Greater than or equal to the 90th percentile for energy burden and is low income?,Energy Factor (Definition N),Greater than or equal to the 90th percentile for diesel particulate matter,Greater than or equal to the 90th percentile for DOT travel barriers,Greater than or equal to the 90th percentile for traffic proximity,At least one traffic threshold exceeded,Greater than or equal to the 90th percentile for diesel particulate matter and is low income?,Greater than or equal to the 90th percentile for traffic proximity and is low income?,Greater than or equal to the 90th percentile for DOT transit barriers and is low income?,Transportation Factor (Definition N),Tract-level redlining score meets or exceeds 3.25 and is low income,Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen,Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?,Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile,Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?,Greater than or equal to the 90th percentile for housing burden,Greater than or equal to the 90th percentile for housing burden and is low income?,Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent,Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?,At least one housing threshold exceeded,Housing Factor (Definition N),Greater than or equal to the 90th percentile for RMP proximity,Greater than or equal to the 90th percentile for NPL (superfund sites) proximity,Greater than or equal to the 90th percentile for proximity to hazardous waste sites,"Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?","Is there at least one abandoned mine in this census tract, where missing data is treated as False?",At least one pollution threshold exceeded,Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?,Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?,Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?,There is at least one abandoned mine in this census tract and the tract is low income.,There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.,Pollution Factor (Definition N),Greater than or equal to the 90th percentile for wastewater discharge,Greater than or equal to the 90th percentile for leaky underwater storage tanks,Greater than or equal to the 90th percentile for wastewater discharge and is low income?,Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?,At least one water threshold exceeded,Water Factor (Definition N),Greater than or equal to the 90th percentile for diabetes,Greater than or equal to the 90th percentile for asthma,Greater than or equal to the 90th percentile for heart disease,Greater than or equal to the 90th percentile for low life expectancy,At least one health threshold exceeded,Greater than or equal to the 90th percentile for diabetes and is low income?,Greater than or equal to the 90th percentile for asthma and is low income?,Greater than or equal to the 90th percentile for heart disease and is low income?,Greater than or equal to the 90th percentile for low life expectancy and is low income?,Health Factor (Definition N),Low high school education,Greater than or equal to the 90th percentile for unemployment,Greater than or equal to the 90th percentile for low median household income as a percent of area median income,Greater than or equal to the 90th percentile for households in linguistic isolation,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level,Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS attainment?,Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?,Greater than or equal to the 90th percentile for unemployment and has low HS attainment?,At least one workforce threshold exceeded,Unemployment (percent) in 2009 (island areas) and 2010 (states and PR),Unemployment (percent) in 2009 for island areas (percentile),Unemployment (percent) in 2009 exceeds 90th percentile,Percentage households below 100% of federal poverty line in 2009 (island areas) and 2010 (states and PR),Percentage households below 100% of federal poverty line in 2009 for island areas (percentile),Percentage households below 100% of federal poverty line in 2009 exceeds 90th percentile,Low median household income as a percent of territory median income in 2009 exceeds 90th percentile,Low high school education in 2009 (island areas),Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS education in 2009 (island areas)?,Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?,Both workforce socioeconomic indicators exceeded,Workforce Factor (Definition N),Total categories exceeded,Definition N (communities),Definition N (communities) (percentile),Meets the less stringent low income criterion for the adjacency index?,Definition N (communities) (average of neighbors),Is the tract surrounded by disadvantaged communities?,Definition N (communities) (based on adjacency index and low income alone),"Definition N community, including adjacency index tracts" -01073001100,True,True,,0.2752043596730245,0.0,4781.0,0.7327449738800064,11.2,7.2,6.7,16.6,19.3,15.1,0.150375939849624,0.318796992481203,0.3744360902255639,57447.0,37030.0,0.049,18.7674524286,1.0,40.0,0.5,0.467489734286576,9.8735797260274,43.056760130719,181.621925132718,2.0427358988323,0.702342755246247,0.134193041307899,4.45238981883771,0.168806466951973,0.035557414766785,0.203932231750679,0.0,0.0,0.374436090225563,0.0821917808219178,0.0092071611253196,85500.0,0.0890751899397432,0.9109248100602568,0.0004047858,5.6328e-05,2.8039e-06,,,,0.1536983669548511,0.3189099613330878,,1.96440511031451,47.695227725,0.0754274220583305,0.6620851491786792,21.2475,0.2853609002858206,0.9682074879732272,0.0121313532733737,0.0,0.0,0.0,0.0161054172767203,0.0035557414766785,0.0,0.1344906923237816,0.6615770759255386,0.2039322317506798,,,,,0.6445941476491375,70.3,,,False,,True,0.646637250602938,0.2159888182416136,0.6290959230020547,0.2601978513507951,0.8509877263095018,0.726480167252144,0.4790223713964701,0.6190889309231579,0.9653762462133604,0.6970048212990485,0.6204255784694491,0.7319894972922707,0.6305043487774192,0.3145069836211475,0.1524256393370651,0.8649904214559387,0.6038246858588359,0.5972204988211937,0.907050889025138,0.8818107500510934,0.8407248450166905,0.8256687748238973,0.5755269239817877,0.3919915848527349,0.9007380772142316,0.4819400886774089,0.7531091164702065,0.9619657803125694,0.3979128365956526,0.1737455390937601,0.7659646371796258,0.1287706711725437,0.1316846004109441,0.6347599221369092,0.4189065592792301,0.029797296373751,0.1130218397675614,0.7459773722926589,0.2540362752992234,0.7846382434272978,0.2153147384849333,0.6144741572412268,,,,0.9349594607528132,0.8950599559730369,,0.5210203309181356,0.4533200613827713,0.4974774332542475,0.8411474612766549,0.2685589820648203,0.6076863237481747,0.9950049813710372,0.8553628212301939,0.0982626615533689,0.4219630696163662,0.0261283146588784,0.0311301570837825,0.0475755053020894,0.0977645244496608,0.6708610265718614,0.1578889904876284,0.763719241739795,,,,,,,,,,,,,0.8218135517196475,0.970728837791148,,4781.0,0,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,False,False,False,False,True,False,False,False,False,False,False,True,False,False,False,False,False,True,False,False,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,0.1536983669548511,,False,0.3189099613330878,,False,False,False,False,False,False,False,False,0.0,False,0,True,0.8571428571428571,False,False,False -01073001400,True,True,,0.1823529411764705,0.0047058823529411,1946.0,0.7136694633528574,11.1,9.1,7.3,21.4,22.4,17.4,0.2816032887975334,0.3679342240493319,0.4835560123329907,57447.0,36066.0,0.07,17.3011023381,1.0,40.0,0.6,0.655319095139786,9.945103013698628,43.1266823529412,3260.33374354854,1.81915896353987,3.34035680534013,0.214095348702766,0.103297800913177,0.647212543554006,0.054984583761562,0.189105858170606,0.0245098039215686,0.024509803921569,0.48355601233299,0.1742543171114599,0.1150121065375302,67800.0,0.0771549125979505,0.9228450874020494,0.0008951111,5.1282e-06,2.3791e-06,,,,0.0804953560371517,0.2950894905920146,,3.16184976454882,44.7571359825,0.2384615384615384,0.0,42.1254,0.4064010997350401,0.9167523124357656,0.0,0.0,0.0,0.0035971223021582,0.0,0.0683453237410072,0.0775950668036999,0.0853031860226104,0.7255909558067831,0.1891058581706063,,,,,0.6278134628440127,71.0,,,False,,True,0.3420576627932471,0.5051386757290068,0.0916310695360657,0.240302951305517,0.8385931477820602,0.9217996672023666,0.6049521425625418,0.7893561645783852,0.9878045311677784,0.8447513262127914,0.8689486351950112,0.8013648049887862,0.7892483999781194,0.3145069836211475,0.1404620788058391,0.9708470169677066,0.5282933267343067,0.5972204988211937,0.907050889025138,0.9704748279855576,0.9380475509230874,0.8390650299616657,0.5827647767060159,0.9563253856942496,0.8799475505569374,0.800191954147291,0.8653347031469666,0.8431412487963854,0.8462609494971342,0.4711122526224721,0.6930355791067373,0.5867081244286861,0.5846423164269493,0.7916756785984643,0.7516347007030237,0.9067399297439892,0.0522639122516786,0.6434566620719774,0.356556985519905,0.9166150755981124,0.0865380767537716,0.5590415088078317,,,,0.6917513228236646,0.8737301229199994,,0.6417351573483292,0.3727897363582321,0.885039133873299,0.3366465235813016,0.5569693544162451,0.7880665456580186,0.9840732602732248,0.2486523003016117,0.0982626615533689,0.4219630696163662,0.0924351398195788,0.0038486209108402,0.4634108061632525,0.8246557394947661,0.1930997775442523,0.5561393692083032,0.6900904835341803,,,,,,,,,,,,,0.8364273002184828,0.9602892118901531,,1946.0,9,True,False,False,True,False,False,True,False,False,True,False,False,True,True,False,True,False,True,True,True,False,True,True,True,True,False,True,True,False,False,False,False,False,False,False,False,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,False,True,True,True,True,False,True,True,True,True,True,False,False,False,False,False,False,True,True,0.0804953560371517,,False,0.2950894905920146,,False,False,False,False,False,False,True,True,6.0,True,1,True,1.0,True,True,True +GEOID10_TRACT,Does the tract have at least 35 acres in it?,Contains agricultural value,Names of Tribal areas within Census tract,Housing burden (percent),Share of homes with no kitchen or indoor plumbing (percent),Total population,Median household income (% of state median household income),Current asthma among adults aged greater than or equal to 18 years,Coronary heart disease among adults aged greater than or equal to 18 years,Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years,Current lack of health insurance among adults aged 18-64 years,Diagnosed diabetes among adults aged greater than or equal to 18 years,Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years,Percent of individuals < 100% Federal Poverty Line,Percent of individuals < 150% Federal Poverty Line,Percent of individuals below 200% Federal Poverty Line,Area Median Income (State or metropolitan),Median household income in the past 12 months,Energy burden,FEMA Risk Index Expected Annual Loss Score,Urban Heuristic Flag,Air toxics cancer risk,Respiratory hazard index,Diesel particulate matter exposure,PM2.5 in the air,Ozone,Traffic proximity and volume,Proximity to Risk Management Plan (RMP) facilities,Proximity to hazardous waste sites,Proximity to NPL sites,Wastewater discharge,Percent pre-1960s housing (lead paint indicator),Individuals under 5 years old,Individuals over 64 years old,Linguistic isolation (percent),Percent of households in linguistic isolation,Poverty (Less than 200% of federal poverty line),Percent individuals age 25 or over with less than high school degree,Unemployment (percent),Median value ($) of owner-occupied housing units,Percent enrollment in college or graduate school,Percent of population not currently enrolled in college or graduate school,Expected building loss rate (Natural Hazards Risk Index),Expected agricultural loss rate (Natural Hazards Risk Index),Expected population loss rate (Natural Hazards Risk Index),Percent individuals age 25 or over with less than high school degree in 2009,Percentage households below 100% of federal poverty line in 2009,Unemployment (percent) in 2009,Unemployment (percent) in 2010,Percent of individuals less than 100% Federal Poverty Line in 2010,Total population in 2009,Leaky underground storage tanks,DOT Travel Barriers Score,Share of properties at risk of flood in 30 years,Share of properties at risk of fire in 30 years,Share of the tract's land area that is covered by impervious surface or cropland as a percent,"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted",Percent Black or African American,Percent American Indian / Alaska Native,Percent Asian,Percent Native Hawaiian or Pacific,Percent two or more races,Percent White,Percent Hispanic or Latino,Percent other races,Percent age under 10,Percent age 10 to 64,Percent age over 64,Percent of the Census tract that is within Tribal areas,Number of Tribal areas within Census tract for Alaska,Number of Tribal areas within Census tract,"Percent of the Census tract that is within Tribal areas, for display",Median household income as a percent of area median income,Life expectancy (years),Median household income as a percent of territory median income in 2009,Is there at least one abandoned mine in this census tract?,Income data has been estimated based on neighbor income,Is there at least one Formerly Used Defense Site (FUDS) in the tract?,Tract-level redlining score meets or exceeds 3.25,Identified as disadvantaged due to tribal overlap,Housing burden (percent) (percentile),Share of homes with no kitchen or indoor plumbing (percent) (percentile),Total population (percentile),Median household income (% of state median household income) (percentile),Current asthma among adults aged greater than or equal to 18 years (percentile),Coronary heart disease among adults aged greater than or equal to 18 years (percentile),Cancer (excluding skin cancer) among adults aged greater than or equal to 18 years (percentile),Current lack of health insurance among adults aged 18-64 years (percentile),Diagnosed diabetes among adults aged greater than or equal to 18 years (percentile),Physical health not good for greater than or equal to 14 days among adults aged greater than or equal to 18 years (percentile),Percent of individuals < 100% Federal Poverty Line (percentile),Percent of individuals < 150% Federal Poverty Line (percentile),Percent of individuals below 200% Federal Poverty Line (percentile),Area Median Income (State or metropolitan) (percentile),Median household income in the past 12 months (percentile),Energy burden (percentile),FEMA Risk Index Expected Annual Loss Score (percentile),Urban Heuristic Flag (percentile),Air toxics cancer risk (percentile),Respiratory hazard index (percentile),Diesel particulate matter exposure (percentile),PM2.5 in the air (percentile),Ozone (percentile),Traffic proximity and volume (percentile),Proximity to Risk Management Plan (RMP) facilities (percentile),Proximity to hazardous waste sites (percentile),Proximity to NPL sites (percentile),Wastewater discharge (percentile),Percent pre-1960s housing (lead paint indicator) (percentile),Individuals under 5 years old (percentile),Individuals over 64 years old (percentile),Linguistic isolation (percent) (percentile),Percent of households in linguistic isolation (percentile),Poverty (Less than 200% of federal poverty line) (percentile),Percent individuals age 25 or over with less than high school degree (percentile),Unemployment (percent) (percentile),Median value ($) of owner-occupied housing units (percentile),Percent enrollment in college or graduate school (percentile),Percent of population not currently enrolled in college or graduate school (percentile),Expected building loss rate (Natural Hazards Risk Index) (percentile),Expected agricultural loss rate (Natural Hazards Risk Index) (percentile),Expected population loss rate (Natural Hazards Risk Index) (percentile),Percent individuals age 25 or over with less than high school degree in 2009 (percentile),Percentage households below 100% of federal poverty line in 2009 (percentile),Unemployment (percent) in 2009 (percentile),Unemployment (percent) in 2010 (percentile),Percent of individuals less than 100% Federal Poverty Line in 2010 (percentile),Total population in 2009 (percentile),Leaky underground storage tanks (percentile),DOT Travel Barriers Score (percentile),Share of properties at risk of flood in 30 years (percentile),Share of properties at risk of fire in 30 years (percentile),Share of the tract's land area that is covered by impervious surface or cropland as a percent (percentile),"Percent of individuals below 200% Federal Poverty Line, imputed and adjusted (percentile)",Percent Black or African American (percentile),Percent American Indian / Alaska Native (percentile),Percent Asian (percentile),Percent Native Hawaiian or Pacific (percentile),Percent two or more races (percentile),Percent White (percentile),Percent Hispanic or Latino (percentile),Percent other races (percentile),Percent age under 10 (percentile),Percent age 10 to 64 (percentile),Percent age over 64 (percentile),Percent of the Census tract that is within Tribal areas (percentile),Number of Tribal areas within Census tract for Alaska (percentile),Number of Tribal areas within Census tract (percentile),"Percent of the Census tract that is within Tribal areas, for display (percentile)",Percent Black or African American in 2009 (percentile),Percent American Indian / Alaska Native in 2009 (percentile),Percent Asian in 2009 (percentile),Percent Native Hawaiian or Pacific in 2009 (percentile),Percent two or more races in 2009 (percentile),Percent White in 2009 (percentile),Percent Hispanic or Latino in 2009 (percentile),Percent other races in 2009 (percentile),Low median household income as a percent of area median income (percentile),Low life expectancy (percentile),Low median household income as a percent of territory median income in 2009 (percentile),Total population in 2009 (island areas) and 2019 (states and PR),Total threshold criteria exceeded,Is low income (imputed and adjusted)?,Greater than or equal to the 90th percentile for expected population loss,Greater than or equal to the 90th percentile for expected agricultural loss,Greater than or equal to the 90th percentile for expected building loss,Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years,Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years,At least one climate threshold exceeded,Greater than or equal to the 90th percentile for expected population loss rate and is low income?,Greater than or equal to the 90th percentile for expected agriculture loss rate and is low income?,Greater than or equal to the 90th percentile for expected building loss rate and is low income?,Greater than or equal to the 90th percentile for share of properties at risk of flood in 30 years and is low income?,Greater than or equal to the 90th percentile for share of properties at risk of fire in 30 years and is low income?,Climate Factor (Definition N),Greater than or equal to the 90th percentile for energy burden,Greater than or equal to the 90th percentile for pm2.5 exposure,At least one energy threshold exceeded,Greater than or equal to the 90th percentile for PM2.5 exposure and is low income?,Greater than or equal to the 90th percentile for energy burden and is low income?,Energy Factor (Definition N),Greater than or equal to the 90th percentile for diesel particulate matter,Greater than or equal to the 90th percentile for DOT travel barriers,Greater than or equal to the 90th percentile for traffic proximity,At least one traffic threshold exceeded,Greater than or equal to the 90th percentile for diesel particulate matter and is low income?,Greater than or equal to the 90th percentile for traffic proximity and is low income?,Greater than or equal to the 90th percentile for DOT transit barriers and is low income?,Transportation Factor (Definition N),Tract-level redlining score meets or exceeds 3.25 and is low income,Greater than or equal to the 90th percentile for share of homes without indoor plumbing or a kitchen,Greater than or equal to the 90th percentile for share of homes with no kitchen or indoor plumbing and is low income?,Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile,Greater than or equal to the 90th percentile for lead paint and the median house value is less than 90th percentile and is low income?,Greater than or equal to the 90th percentile for housing burden,Greater than or equal to the 90th percentile for housing burden and is low income?,Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent,Greater than or equal to the 90th percentile for share of the tract's land area that is covered by impervious surface or cropland as a percent and is low income?,At least one housing threshold exceeded,Housing Factor (Definition N),Greater than or equal to the 90th percentile for RMP proximity,Greater than or equal to the 90th percentile for NPL (superfund sites) proximity,Greater than or equal to the 90th percentile for proximity to hazardous waste sites,"Is there at least one Formerly Used Defense Site (FUDS) in the tract, where missing data is treated as False?","Is there at least one abandoned mine in this census tract, where missing data is treated as False?",At least one pollution threshold exceeded,Greater than or equal to the 90th percentile for proximity to RMP sites and is low income?,Greater than or equal to the 90th percentile for proximity to superfund sites and is low income?,Greater than or equal to the 90th percentile for proximity to hazardous waste facilities and is low income?,There is at least one abandoned mine in this census tract and the tract is low income.,There is at least one Formerly Used Defense Site (FUDS) in the tract and the tract is low income.,Pollution Factor (Definition N),Greater than or equal to the 90th percentile for wastewater discharge,Greater than or equal to the 90th percentile for leaky underwater storage tanks,Greater than or equal to the 90th percentile for wastewater discharge and is low income?,Greater than or equal to the 90th percentile for leaky underground storage tanks and is low income?,At least one water threshold exceeded,Water Factor (Definition N),Greater than or equal to the 90th percentile for diabetes,Greater than or equal to the 90th percentile for asthma,Greater than or equal to the 90th percentile for heart disease,Greater than or equal to the 90th percentile for low life expectancy,At least one health threshold exceeded,Greater than or equal to the 90th percentile for diabetes and is low income?,Greater than or equal to the 90th percentile for asthma and is low income?,Greater than or equal to the 90th percentile for heart disease and is low income?,Greater than or equal to the 90th percentile for low life expectancy and is low income?,Health Factor (Definition N),Low high school education,Greater than or equal to the 90th percentile for unemployment,Greater than or equal to the 90th percentile for low median household income as a percent of area median income,Greater than or equal to the 90th percentile for households in linguistic isolation,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level,Greater than or equal to the 90th percentile for households in linguistic isolation and has low HS attainment?,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS attainment?,Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS attainment?,Greater than or equal to the 90th percentile for unemployment and has low HS attainment?,At least one workforce threshold exceeded,Unemployment (percent) in 2009 (island areas) and 2010 (states and PR),Unemployment (percent) in 2009 for island areas (percentile),Unemployment (percent) in 2009 exceeds 90th percentile,Percentage households below 100% of federal poverty line in 2009 (island areas) and 2010 (states and PR),Percentage households below 100% of federal poverty line in 2009 for island areas (percentile),Percentage households below 100% of federal poverty line in 2009 exceeds 90th percentile,Low median household income as a percent of territory median income in 2009 exceeds 90th percentile,Low high school education in 2009 (island areas),Greater than or equal to the 90th percentile for unemployment and has low HS education in 2009 (island areas)?,Greater than or equal to the 90th percentile for households at or below 100% federal poverty level and has low HS education in 2009 (island areas)?,Greater than or equal to the 90th percentile for low median household income as a percent of area median income and has low HS education in 2009 (island areas)?,Both workforce socioeconomic indicators exceeded,Workforce Factor (Definition N),Total categories exceeded,Definition N (communities),Definition N (communities) (percentile),Meets the less stringent low income criterion for the adjacency index?,Definition N (communities) (average of neighbors),Is the tract surrounded by disadvantaged communities?,Definition N (communities) (based on adjacency index and low income alone),"Definition N community, including adjacency index tracts",Percentage of tract that is disadvantaged +01073001100,True,True,,0.2752043596730245,0.0,4781.0,0.7327449738800064,11.2,7.2,6.7,16.6,19.3,15.1,0.150375939849624,0.318796992481203,0.3744360902255639,57447.0,37030.0,0.049,18.7674524286,1.0,40.0,0.5,0.467489734286576,9.8735797260274,43.056760130719,181.621925132718,2.0427358988323,0.702342755246247,0.134193041307899,4.45238981883771,0.168806466951973,0.035557414766785,0.203932231750679,0.0,0.0,0.374436090225563,0.0821917808219178,0.0092071611253196,85500.0,0.0890751899397432,0.9109248100602568,0.0004047858,5.6328e-05,2.8039e-06,,,,0.1536983669548511,0.3189099613330878,,1.96440511031451,47.695227725,0.0754274220583305,0.6620851491786792,21.2475,0.2853609002858206,0.9682074879732272,0.0121313532733737,0.0,0.0,0.0,0.0161054172767203,0.0035557414766785,0.0,0.1344906923237816,0.6615770759255386,0.2039322317506798,,,,,0.6445941476491375,70.3,,,False,,True,,0.646637250602938,0.2159888182416136,0.6290959230020547,0.2601978513507951,0.8509877263095018,0.726480167252144,0.4790223713964701,0.6190889309231579,0.9653762462133604,0.6970048212990485,0.6204255784694491,0.7319894972922707,0.6305043487774192,0.3145069836211475,0.1524256393370651,0.8649904214559387,0.6038246858588359,0.5972204988211937,0.907050889025138,0.8818107500510934,0.8407248450166905,0.8256687748238973,0.5755269239817877,0.3919915848527349,0.9007380772142316,0.4819400886774089,0.7531091164702065,0.9619657803125694,0.3979128365956526,0.1737455390937601,0.7659646371796258,0.1287706711725437,0.1316846004109441,0.6347599221369092,0.4189065592792301,0.029797296373751,0.1130218397675614,0.7459773722926589,0.2540362752992234,0.7846382434272978,0.2153147384849333,0.6144741572412268,,,,0.9349594607528132,0.8950599559730369,,0.5210203309181356,0.4533200613827713,0.4974774332542475,0.8411474612766549,0.2685589820648203,0.6076863237481747,0.9950049813710372,0.8553628212301939,0.0982626615533689,0.4219630696163662,0.0261283146588784,0.0311301570837825,0.0475755053020894,0.0977645244496608,0.6708610265718614,0.1578889904876284,0.763719241739795,,,,,,,,,,,,,0.8218135517196475,0.970728837791148,,4781.0,0,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,False,False,False,False,True,False,False,False,False,False,False,True,False,False,False,False,False,True,False,False,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,0.1536983669548511,,False,0.3189099613330878,,False,False,False,False,False,False,False,False,0.0,False,0,True,0.8571428571428571,False,False,False,0.0 +01073001400,True,True,,0.1823529411764705,0.0047058823529411,1946.0,0.7136694633528574,11.1,9.1,7.3,21.4,22.4,17.4,0.2816032887975334,0.3679342240493319,0.4835560123329907,57447.0,36066.0,0.07,17.3011023381,1.0,40.0,0.6,0.655319095139786,9.945103013698628,43.1266823529412,3260.33374354854,1.81915896353987,3.34035680534013,0.214095348702766,0.103297800913177,0.647212543554006,0.054984583761562,0.189105858170606,0.0245098039215686,0.024509803921569,0.48355601233299,0.1742543171114599,0.1150121065375302,67800.0,0.0771549125979505,0.9228450874020494,0.0008951111,5.1282e-06,2.3791e-06,,,,0.0804953560371517,0.2950894905920146,,3.16184976454882,44.7571359825,0.2384615384615384,0.0,42.1254,0.4064010997350401,0.9167523124357656,0.0,0.0,0.0,0.0035971223021582,0.0,0.0683453237410072,0.0775950668036999,0.0853031860226104,0.7255909558067831,0.1891058581706063,,,,,0.6278134628440127,71.0,,,False,,True,,0.3420576627932471,0.5051386757290068,0.0916310695360657,0.240302951305517,0.8385931477820602,0.9217996672023666,0.6049521425625418,0.7893561645783852,0.9878045311677784,0.8447513262127914,0.8689486351950112,0.8013648049887862,0.7892483999781194,0.3145069836211475,0.1404620788058391,0.9708470169677066,0.5282933267343067,0.5972204988211937,0.907050889025138,0.9704748279855576,0.9380475509230874,0.8390650299616657,0.5827647767060159,0.9563253856942496,0.8799475505569374,0.800191954147291,0.8653347031469666,0.8431412487963854,0.8462609494971342,0.4711122526224721,0.6930355791067373,0.5867081244286861,0.5846423164269493,0.7916756785984643,0.7516347007030237,0.9067399297439892,0.0522639122516786,0.6434566620719774,0.356556985519905,0.9166150755981124,0.0865380767537716,0.5590415088078317,,,,0.6917513228236646,0.8737301229199994,,0.6417351573483292,0.3727897363582321,0.885039133873299,0.3366465235813016,0.5569693544162451,0.7880665456580186,0.9840732602732248,0.2486523003016117,0.0982626615533689,0.4219630696163662,0.0924351398195788,0.0038486209108402,0.4634108061632525,0.8246557394947661,0.1930997775442523,0.5561393692083032,0.6900904835341803,,,,,,,,,,,,,0.8364273002184828,0.9602892118901531,,1946.0,9,True,False,False,True,False,False,True,False,False,True,False,False,True,True,False,True,False,True,True,True,False,True,True,True,True,False,True,True,False,False,False,False,False,False,False,False,True,True,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,False,True,False,True,True,True,True,False,True,True,True,True,True,False,False,False,False,False,False,True,True,0.0804953560371517,,False,0.2950894905920146,,False,False,False,False,False,False,True,True,6.0,True,1,True,1.0,True,True,True,1.0 diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl b/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl index ced87384f5b012771efd4935da5a405037f19cc5..3e00e6b2cb9fb8fedd8b4bfa5b70989cb5916544 100644 GIT binary patch delta 1153 zcmXZXT}V@L7{~FQ{pU8V+?#u`&33|SZT7a>=|xvL_axerWMyxr*-=-%tfp%TAvJpu z5u%G8C6F$P2%?K179kNqH(k_46cOEY5kwGO72OnFbo%?8o6qG#MDS-Y8jphZ2 z6}VDvaSMo*xJvc|qgP|p=rIw+nA~oafmn;{WP7bZ@2nbKw}RM!ak<%SAU0t__Jq-! zaf|HVHlQbVjq-L74VaYMcRSGia*ZZzcFL9~X|6(}PvszXVxxS2r~*VIrewb{8gQ5F zmPH_TVYBQPM(@Ek+4YM-?8SDvw0KPH#{+V6I_#8Kk`%|VOP=p70dX9AWG|}(p<}P? zo0UKv4vm}+5dD~u+q46y*{PA)3E~tE$ZgySwAH22FJl|RVY&VP|I>Iz_E#6sUAIO( zZV)3lDz}erpjnSb`#d1dVnJ@NJU~-b8l|g%&U-a_X86-k^8yX~Gh^1N z+wg;7wI672;QxC&&H0n!0$!BgTND6s5sR{~8hsTf>2=_O@~zZb-J-ZWriG`PT}r>h z;pMCN6k%g*9lM5HYB;);Pxb6}wuw!%%@kMH7Z362FnfeO%678d>h}>omi0OLlMP#BNS6kP+h2u$D#J;+{Wuh7#_PWeNz znxIp&m`vAfsjS|spVnuFHkS_8kh$pNn|?OH*03sD%f{IRyM;}$t?X{LjcsQSuw4sQ zn0j~^rcpJeG*L;7mQ7C14E-s6R=1gzI0b8iKDGZ`MlIyjLVmDU&#JkxOg^iRP@q-~ zM%y#_zRa0|ek!BpP8v7#zJgj9&GD7{~FQeRtjQPwxM9x7~Hy)cliTns1p}YV#!KlclDCmg%ZwsY{|Hh?tg% z2+_euI|UUcM28?2A}ESFbf`nrLApej$aC4TpyBnI%jf(4W`d{^cFZ$@0t&-kbLF~q`>Usepin*#^n7s$%sw-?je}$wcHV}E3Z*Eg!9~P>6 z_v|1Fu}HN)4a9ydRei_oQY=&LZ~%QtlQi!DQGu0e`UPT$ePI4x$EY`5mCg>5|T6fH;cB)b=R@D4rpyITOTjG}QLiYy&}cO%{k2M7ohR zC0g;c+DdnUXv22Z8)kQ7kLuiP5Ermlb*ojU``LA(5Bt^G3DwI^piZYGs|&;+ z4ykR%1=Qq{^vB#T;jr40ZlG$nB=i5pD2}PE&jVr%ld8XZfYv>d+PxsI;<(yAc!Acu zk_;b+37k~hD<9C3Pm=V5xQ0_|d+LW3zofzd(6s3T)8D3{9H7yFq!rU2rkO#Y-W*A{ zOgByc1wq`z1%lA5wwZbtYS!jFmYpky4YDCN!p7Kqwty{Si`f#kj6J{}WDl{`J9b!V zd1zo8Szu4FP3%eb6nlp4WV`5NIM#ihPZ!w)JH!sNBW#i#XD8WN_BuO97%kB3G#x3? z+UQZFjcn0C$iBFGIlgQZIr*s$_AD6@N#oHLZHrz;!>+wHi{-YXaV#;ANG4WC@=`ye zWOe)aX+ImFa5zQ-;h)~>D5AVI~6|%+~wQ_=Zv3+52b!00w5kF$3?|HeY;{2JI YRzVv^l}(!8qR)DOwvAft4VA;-f5hqS5C8xG diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/score_data_expected.pkl b/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/score_data_expected.pkl index 0e5ac41b16861337b23810c253e5c010faf954a6..3ab649cb109bbb06b7adf047e6c6e27fad544038 100644 GIT binary patch delta 441 zcmcb=oN@X}M%D(FsXZYZSr>4~26;2JP08@>bW&htfPx?O5XO)C&6_wRSs52iHsDvA zJWqgU@;_dF=0)C%CkybMWM1t3esTbl!sI`EhRpB1KLXVlGk^5{1Qp|&Jb_=G`IGk- zF#i_6BIB3I4gwmJRRp9bmkMZ3&Jf^b{_Fh@YO?g?_X3)1_MOg5jEs|Y1hppz@Uu;p z5R_u`WnlCL3I#B!O^y{5WMyRZWnl#CQ4tVg{$M|4vW!r`Cny}zx8-A(D{{-12*&TBdlM-_ir)2psGBBi;Oi9Wx@#SFj<(zz4$Xg^D zDpotC9W24g=*u-(OW2k%b#jKVCL`D8Ny629Muwg#sd*)tX_=`h3W>!EDVfEIDP@Uy zC5h=kft1ozg_3-QlA_F{#2khEvecrS#DdM-O5FxpngOXr$v~Yzbqe`uKqZOEB?=`O oi6sh|Xr@e_5){jrKKWCS2}?H6Ns|MF#3nlgTQk;7t_e;C0MnU^5dZ)H delta 305 zcmXYqF-QVo9L4W{=fxp*_uY2|ngkYDoGwc4nL*2!rJS`$gGC@MIkZJmLxEGnyJ%IH zs2~WT*`lSPt=-*06i354#PPlNd+*&pQs;rxOW)m(^QzXh*}RZ%+;X;-VX7pxKD3ZZ z4Wx|~ys!Xt-B22$iHQECG(`_NIf8(ZRC=QCF>6X+45pqRbz@Z-h~Y$cjU{C$Mw6Xq zlLvxn_sl&kr^HD7dS)CKOv5g-y^}Dmna$Q~n=;W98jHV4(>50{W>Hk+8JwD?Pok`X zD&GR*VN!5q#<0&rYLq1D7;Q6$Pd<-0Pr`5cDT4~%(>AuCAP%Ou>DXER4IalT`KfRB^Uu-a?>hVuSG>HkogkrBdRg3`>B zb=XuH7f%ji(_%E(T+6nYWwHUMz-9&R0#**F7KX_k0&*OSTc>1rb~;IHUMFyy#d0B3 z?md+L0Hr@c>CaI550qwrTE_yiZt`_eL*_-kQIomFma?!i`m#;lB9_9)wpmiVn$OhG zGbJ^zBr`2DHANw@SRo~|I5DLxF|Q;s9Vn1enyOHeuTWBynUt8LkYAQsl#^I6rAKx0 yT5*ZZYgG#jv@`=!i;{r`0F^7`rvX(aCYLCbWF(d-WTF{1Svt&{aqi^wuzCQW?p4wN delta 211 zcmeyij`7)AM%D(Fskg&6vc@qpF4`Q!9M8o0fdK+OPd>tGulNVb`v;{N7$FQsD9tok zhfS4n;p8ATEk=ROwQP%7HXCpkuuk3}AjYwm?85*-^j_=(% Ri3XF`hIum1p8P$m9sp{DGU)&S diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/tile_data_expected.pkl b/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/tile_data_expected.pkl index 6e314d652bd530937f4e2846c40c0f9f022f3ce6..ac301b0c9bcc6f9209c20f23f45e10ba02bee1ca 100644 GIT binary patch delta 401 zcmbQCc3X|5fn{pIMwU+I$#a<>aC$O8fY;P^RYs1-QwIpd(bNnk@wHaD@~VHAXlF}T}*fG{`5a%M1c zn1GFUS}^%6*JVK+s3LDDojh5NRopTI$}54=rBJ#IN>@SYYA9U`rRyhi^7u=3LwP+= ux*tkUoSev$!8m#IDV|x3{4BwK@gY-s*nw1lYmoEiB)%XPMwQ81g^~ehSVRo~ delta 328 zcmcbuHbaf2fn_T1MwU)yPHhGV(3#xE{G8JZ%JZIF#?o#W2j#^>=>#a90;N--bUKvI zn5@U@FIfuZl|kupC|xyq9;-NG{p5YDs$A^eOl?y#)OwiGCLa(|WGtA>&t^6`lr4aR zy>&{4XQ#8p Date: Wed, 12 Oct 2022 10:18:30 -0400 Subject: [PATCH 4/5] Make a int a float (#1998) --- data/data-pipeline/data_pipeline/score/score_narwhal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/data-pipeline/data_pipeline/score/score_narwhal.py b/data/data-pipeline/data_pipeline/score/score_narwhal.py index f7fcc92db..07e2ab619 100644 --- a/data/data-pipeline/data_pipeline/score/score_narwhal.py +++ b/data/data-pipeline/data_pipeline/score/score_narwhal.py @@ -1017,7 +1017,7 @@ def _get_percent_of_tract_that_is_dac(self) -> float: """ tribal_percent = self.df[ field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT - ].fillna(0) + ].fillna(0.0) return np.where( self.df[field_names.FINAL_SCORE_N_BOOLEAN], 1.0, From 4a5d1efc58486c78cd9ab6fda7acbc670d19d320 Mon Sep 17 00:00:00 2001 From: matt bowen Date: Wed, 12 Oct 2022 13:39:40 -0400 Subject: [PATCH 5/5] Update field names, apply feedback (#1998) --- .../data_pipeline/content/config/csv.yml | 2 +- .../data_pipeline/content/config/excel.yml | 2 +- .../snapshots/downloadable_data_expected.pkl | Bin 17554 -> 17562 bytes .../etl/sources/tribal_overlap/etl.py | 7 +++---- .../data_pipeline/score/field_names.py | 3 --- 5 files changed, 5 insertions(+), 9 deletions(-) diff --git a/data/data-pipeline/data_pipeline/content/config/csv.yml b/data/data-pipeline/data_pipeline/content/config/csv.yml index e0a5beeed..957b65734 100644 --- a/data/data-pipeline/data_pipeline/content/config/csv.yml +++ b/data/data-pipeline/data_pipeline/content/config/csv.yml @@ -66,7 +66,7 @@ fields: label: Identified as disadvantaged format: bool - score_name: Percentage of tract that is disadvantaged - label: Percentage of tract that is disadvantaged + label: Percentage of tract that is disadvantaged by area format: percentage - score_name: Definition N (communities) (average of neighbors) label: Share of neighbors that are identified as disadvantaged diff --git a/data/data-pipeline/data_pipeline/content/config/excel.yml b/data/data-pipeline/data_pipeline/content/config/excel.yml index 2b8437e41..18f00bdec 100644 --- a/data/data-pipeline/data_pipeline/content/config/excel.yml +++ b/data/data-pipeline/data_pipeline/content/config/excel.yml @@ -70,7 +70,7 @@ sheets: label: Identified as disadvantaged format: bool - score_name: Percentage of tract that is disadvantaged - label: Percentage of tract that is disadvantaged + label: Percentage of tract that is disadvantaged by area format: percentage - score_name: Definition N (communities) (average of neighbors) label: Share of neighbors that are identified as disadvantaged diff --git a/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl b/data/data-pipeline/data_pipeline/etl/score/tests/snapshots/downloadable_data_expected.pkl index 3e00e6b2cb9fb8fedd8b4bfa5b70989cb5916544..c7dbc21473c9fa2f805433f9dfd3d7fc7f20a487 100644 GIT binary patch delta 35 rcmbQ#$vCT%k)?rUYX3%-pURAelm97eawsHKDkK)ACT><&$yNXW;jau5 delta 26 icmbQ$$vCN#k)?rUYWqf(pURAylm97eZq`@HRsaBj#R*OT diff --git a/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py b/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py index dfa6c7398..c2c865971 100644 --- a/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py +++ b/data/data-pipeline/data_pipeline/etl/sources/tribal_overlap/etl.py @@ -249,12 +249,11 @@ def transform(self) -> None: field_names.COUNT_OF_TRIBAL_AREAS_IN_TRACT_CONUS ] = None - merged_output_df[field_names.IS_TRIBAL_DAC] = np.where( + merged_output_df[field_names.IS_TRIBAL_DAC] = ( merged_output_df[field_names.PERCENT_OF_TRIBAL_AREA_IN_TRACT] - > self.TRIBAL_OVERLAP_CUTOFF, - True, - False, + > self.TRIBAL_OVERLAP_CUTOFF ) + # The very final thing we want to do is produce a string for the front end to show # We do this here so that all of the logic is included merged_output_df[ diff --git a/data/data-pipeline/data_pipeline/score/field_names.py b/data/data-pipeline/data_pipeline/score/field_names.py index 1fac032a9..aed44c483 100644 --- a/data/data-pipeline/data_pipeline/score/field_names.py +++ b/data/data-pipeline/data_pipeline/score/field_names.py @@ -11,9 +11,6 @@ COUNTY_FIELD = "County Name" # Definition Narwhal fields -FINAL_SCORE_N_BOOLEAN = ( - "Definition M community, including adjacency index tracts" -) SCORE_N_COMMUNITIES = "Definition N (communities)" N_CLIMATE = "Climate Factor (Definition N)" N_ENERGY = "Energy Factor (Definition N)"