Skip to content

Commit

Permalink
formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AnneONS committed Nov 14, 2024
1 parent 37dc41f commit cab52e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imputation/imputation_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,10 @@ def run_imputation(
imputed_df = hlp.calculate_totals(imputed_df)

# After TMI imputation, overwrite the "604" == "No" in any records with
# Status "check needed" (they are now being imputed)
# Status "check needed" (they are now being imputed")
chk_mask = imputed_df["status"].str.contains("Check needed")
imputation_mask = imputed_df["imp_marker"] == "TMI"
# Changing all records that meet the criteria to "604" == "Yes"

imputed_df.loc[(chk_mask & imputation_mask), "604"] = "Yes"

# join constructed rows back to the imputed df
Expand Down

0 comments on commit cab52e1

Please sign in to comment.