Skip to content

Commit

Permalink
Add housing type column noise type
Browse files Browse the repository at this point in the history
  • Loading branch information
albrja committed Aug 22, 2023
1 parent b2185a7 commit c5cda0b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/pseudopeople/data/incorrect_select_options.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
state,relationship_to_reference_person,sex,race_ethnicity,tax_form,event_type
AL,Reference person,Female,White,W2,creation
AK,Opp-sex spouse,Male,Black,1099,death
AZ,Opp-sex partner,,Asian,,
AR,Same-sex spouse,,AIAN,,
CA,Same-sex partner,,NHOPI,,
CO,Biological child,,Multiracial or Other,,
CT,Adopted child,,Latino,,
state,relationship_to_reference_person,sex,race_ethnicity,tax_form,event_type,housing_type
AL,Reference person,Female,White,W2,creation,Household
AK,Opp-sex spouse,Male,Black,1099,death,Carceral
AZ,Opp-sex partner,,Asian,,Nursing home
AR,Same-sex spouse,,AIAN,,Other institutional
CA,Same-sex partner,,NHOPI,,College
CO,Biological child,,Multiracial or Other,,Military
CT,Adopted child,,Latino,,Other noninstitutional
DE,Stepchild,,,,
FL,Sibling,,,,
GA,Parent,,,,
Expand Down
9 changes: 9 additions & 0 deletions src/pseudopeople/schema_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,13 @@ class __Columns(NamedTuple):
household_id: Column = Column(
"household_id",
)
housing_type: Column = Column(
"housing_type",
(
NOISE_TYPES.leave_blank,
NOISE_TYPES.choose_wrong_option,
),
)
wages: Column = Column(
"wages",
(
Expand Down Expand Up @@ -593,6 +600,7 @@ class __Datasets(NamedTuple):
COLUMNS.city,
COLUMNS.state,
COLUMNS.zipcode,
COLUMNS.housing_type,
COLUMNS.relationship_to_reference_person,
COLUMNS.sex,
COLUMNS.race_ethnicity,
Expand Down Expand Up @@ -623,6 +631,7 @@ class __Datasets(NamedTuple):
COLUMNS.city,
COLUMNS.state,
COLUMNS.zipcode,
COLUMNS.housing_type,
COLUMNS.relationship_to_reference_person,
COLUMNS.sex,
COLUMNS.race_ethnicity,
Expand Down

0 comments on commit c5cda0b

Please sign in to comment.