Fixed errors in frequency distribution household data code

2 jobs for feature/fix_frequency_distribution_household_data in 2 minutes and 51 seconds (queued for 4 seconds)