Skip to content

Commit

Permalink
Emma nechamkin/holc patch (#1742)
Browse files Browse the repository at this point in the history
Removing HOLC calculation from score narwhal.
  • Loading branch information
emma-nechamkin committed Aug 11, 2022
1 parent 3071815 commit 7559cf4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions data/data-pipeline/data_pipeline/score/score_narwhal.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,17 +314,16 @@ def _housing_factor(self) -> bool:
housing_eligibility_columns = [
field_names.LEAD_PAINT_MEDIAN_HOUSE_VALUE_LOW_INCOME_FIELD,
field_names.HOUSING_BURDEN_LOW_INCOME_FIELD,
# Until we get confirmation -- NOT included
# field_names.HISTORIC_REDLINING_SCORE_EXCEEDED_LOW_INCOME_FIELD,
field_names.HISTORIC_REDLINING_SCORE_EXCEEDED_LOW_INCOME_FIELD,
]

# # design question -- should read in scalar with threshold here instead?
# self.df[
# field_names.HISTORIC_REDLINING_SCORE_EXCEEDED_LOW_INCOME_FIELD
# ] = (
# self.df[field_names.HISTORIC_REDLINING_SCORE_EXCEEDED]
# & self.df[field_names.FPL_200_SERIES_IMPUTED_AND_ADJUSTED]
# )
self.df[
field_names.HISTORIC_REDLINING_SCORE_EXCEEDED_LOW_INCOME_FIELD
] = (
self.df[field_names.HISTORIC_REDLINING_SCORE_EXCEEDED]
& self.df[field_names.FPL_200_SERIES_IMPUTED_AND_ADJUSTED]
)

self.df[field_names.LEAD_PAINT_PROXY_PCTILE_THRESHOLD] = (
self.df[
Expand Down

0 comments on commit 7559cf4

Please sign in to comment.