Skip to content

Commit 66ab7b4

Browse files
MaxGhenisclaude
andcommitted
Remove duplicate bad_targets entries in EnhancedCPS reweighting
The bad_targets list had 9 duplicate entries (lines 163-171 were exact copies of 154-162). This is harmless since `.isin()` deduplicates, but the duplicates obscure the actual exclusion list. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dd3455a commit 66ab7b4

2 files changed

Lines changed: 1 addition & 9 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove duplicate entries in bad_targets list.

policyengine_us_data/datasets/cps/enhanced_cps.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -151,15 +151,6 @@ def generate(self):
151151
)
152152

153153
bad_targets = [
154-
"nation/irs/adjusted gross income/total/AGI in 10k-15k/taxable/Head of Household",
155-
"nation/irs/adjusted gross income/total/AGI in 15k-20k/taxable/Head of Household",
156-
"nation/irs/adjusted gross income/total/AGI in 10k-15k/taxable/Married Filing Jointly/Surviving Spouse",
157-
"nation/irs/adjusted gross income/total/AGI in 15k-20k/taxable/Married Filing Jointly/Surviving Spouse",
158-
"nation/irs/count/count/AGI in 10k-15k/taxable/Head of Household",
159-
"nation/irs/count/count/AGI in 15k-20k/taxable/Head of Household",
160-
"nation/irs/count/count/AGI in 10k-15k/taxable/Married Filing Jointly/Surviving Spouse",
161-
"nation/irs/count/count/AGI in 15k-20k/taxable/Married Filing Jointly/Surviving Spouse",
162-
"state/RI/adjusted_gross_income/amount/-inf_1",
163154
"nation/irs/adjusted gross income/total/AGI in 10k-15k/taxable/Head of Household",
164155
"nation/irs/adjusted gross income/total/AGI in 15k-20k/taxable/Head of Household",
165156
"nation/irs/adjusted gross income/total/AGI in 10k-15k/taxable/Married Filing Jointly/Surviving Spouse",

0 commit comments

Comments
 (0)