diff --git a/scripts/2_match_households_and_individuals.py b/scripts/2_match_households_and_individuals.py index 04e7a93..5da1c9d 100644 --- a/scripts/2_match_households_and_individuals.py +++ b/scripts/2_match_households_and_individuals.py @@ -898,7 +898,7 @@ def get_interim_path( # - or can use the single sample hh for the new column # For now, updated to use the sample dictionary ## add matches_hh_level as a column in spc_edited - spc_edited["nts_hh_id"] = spc_edited["hid"].map(matches_hh_level_sample) + spc_edited["nts_hh_id"] = spc_edited["hid"].map(matches_hh_level_sample).astype(int) # Do the same at the df level. Add nts_hh_id_sample column to the spc df