populate_households#
- populate_households(pop, households, age_by_uid)[source]#
Populate all of the households. Store each household at the index corresponding to it’s hhid.
- Parameters:
pop (sp.Pop) – population
households (list) – list of lists where each sublist represents a household and contains the ids of the household members
age_by_uid (dict) – dictionary mapping each person’s id to their age