Skip to content

Commit

Permalink
Cast "nts_hh_id" as int
Browse files Browse the repository at this point in the history
  • Loading branch information
sgreenbury committed Oct 22, 2024
1 parent b0fbb56 commit bfb5e41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/2_match_households_and_individuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bfb5e41

Please sign in to comment.