We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a6d38a commit 5b1034dCopy full SHA for 5b1034d
1 file changed
policyengine_uk_data/datasets/imputations/income.py
@@ -205,9 +205,7 @@ def impute_over_incomes(
205
dataset.person[column] = output_df[column].fillna(0).values
206
207
new_income_total = dataset.person[INCOME_COMPONENTS].sum().sum()
208
- adjustment_factor = _safe_rescale_factor(
209
- original_income_total, new_income_total
210
- )
+ adjustment_factor = _safe_rescale_factor(original_income_total, new_income_total)
211
# Adjust rent and mortgage interest and capital repayments proportionally
212
dataset.household["rent"] = dataset.household["rent"] * adjustment_factor
213
dataset.household["mortgage_interest_repayment"] = (
0 commit comments