mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-06 08:54:19 -07:00
Adding category count to BE signals (#1486)
Added category count to downloadable data and backend signals.
This commit is contained in:
parent
712e5bb4ed
commit
0c07cdac55
11 changed files with 45 additions and 37 deletions
|
@ -17,6 +17,9 @@ fields:
|
|||
- score_name: Total threshold criteria exceeded
|
||||
label: Total threshold criteria exceeded
|
||||
format: int64
|
||||
- score_name: Total categories exceeded
|
||||
label: Total categories exceeded
|
||||
format: int64
|
||||
- score_name: Definition M (communities)
|
||||
label: Identified as disadvantaged
|
||||
format: bool
|
||||
|
|
|
@ -22,6 +22,9 @@ sheets:
|
|||
- score_name: Total threshold criteria exceeded
|
||||
label: Total threshold criteria exceeded
|
||||
format: int64
|
||||
- score_name: Total categories exceeded
|
||||
label: Total categories exceeded
|
||||
format: int64
|
||||
- score_name: Definition M (communities)
|
||||
label: Identified as disadvantaged
|
||||
format: bool
|
||||
|
|
|
@ -187,6 +187,7 @@ TILES_SCORE_COLUMNS = {
|
|||
field_names.LOW_MEDIAN_INCOME_LOW_HS_LOW_HIGHER_ED_FIELD: "LMILHSE",
|
||||
field_names.UNEMPLOYMENT_LOW_HS_LOW_HIGHER_ED_FIELD: "ULHSE",
|
||||
field_names.THRESHOLD_COUNT: "TC",
|
||||
field_names.CATEGORY_COUNT: "CC",
|
||||
field_names.ISLAND_AREAS_UNEMPLOYMENT_LOW_HS_EDUCATION_FIELD: "IAULHSE",
|
||||
field_names.ISLAND_AREAS_POVERTY_LOW_HS_EDUCATION_FIELD: "IAPLHSE",
|
||||
field_names.ISLAND_AREAS_LOW_MEDIAN_INCOME_LOW_HS_EDUCATION_FIELD: "IALMILHSE",
|
||||
|
|
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -591,6 +591,7 @@ LOW_READING_LOW_HS_EDUCATION_FIELD = (
|
|||
)
|
||||
|
||||
THRESHOLD_COUNT = "Total threshold criteria exceeded"
|
||||
CATEGORY_COUNT = "Total categories exceeded"
|
||||
|
||||
FPL_200_SERIES = "Is low income?"
|
||||
FPL_200_AND_COLLEGE_ATTENDANCE_SERIES = (
|
||||
|
|
|
@ -832,6 +832,7 @@ class ScoreM(Score):
|
|||
field_names.M_HEALTH,
|
||||
field_names.M_WORKFORCE,
|
||||
]
|
||||
self.df[field_names.CATEGORY_COUNT] = self.df[factors].sum(axis=1)
|
||||
self.df[field_names.SCORE_M_COMMUNITIES] = self.df[factors].any(axis=1)
|
||||
|
||||
# Note: this is purely used for comparison tool analysis, and can be removed at a later date. - LMB.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue