%load_ext autoreload %autoreload 2 from synthpop.recipes.starter import Starter from synthpop.synthesizer import synthesize_all, enable_logging import os import pandas as pd #enable_logging() def synthesize_counties(counties): for county in counties: starter = Starter(os.environ["CENSUS"], "CA", county) synthesize_all(starter) %time hh = synthesize_counties(["Santa Clara County", "Solano County", "San Mateo County", "Marin County", "San Francisco County", "Napa County", "Sonoma County", "Contra Costa County", "Alameda County"]) starter = Starter(os.environ["CENSUS"], "CA", "Santa Clara County") ind = pd.Series(["06", "085", "508203", "3"], index=["state", "county", "tract", "block group"]) synthesize_all(starter, indexes=[ind]) hh.describe()