Skip to content

Commit d899f83

Browse files
make sure county IDs are in the right format
1 parent 0869ae5 commit d899f83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

demos/models/income_adjustment.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def income_adjustment(persons, households, income_rates, year):
4343
start_time = time.time()
4444
# TODO: CountyID is not being updated by default
4545
# Update income according to county rate
46+
income_rates['lcm_county_id'] = income_rates['lcm_county_id'].map(lambda x: f'{x:0>5}')
47+
4648
persons.local.earning *= (
4749
1
4850
+ income_rates.local.loc[year]

0 commit comments

Comments
 (0)