In [1]:
from synthpop.recipes.starter import Starter
from synthpop.synthesizer import synthesize_all, enable_logging
import os
import pandas as pd
In [2]:
starter = Starter(os.environ["CENSUS"], "CA", "Santa Clara County")
In [ ]:
ind = pd.Series(["06", "085", "508203", "3"], index=["state", "county", "tract", "block group"])
In [12]:
%time households, persons, fit = synthesize_all(starter, indexes=[ind])
In [7]:
households.head(3)
Out[7]:
In [8]:
persons.head(3)
Out[8]:
In [9]:
fit
Out[9]:
In [13]:
starter = Starter(os.environ["CENSUS"], "MD", "Montgomery County")
In [15]:
ind = pd.Series(["24", "031", "700101", "1"], index=["state", "county", "tract", "block group"])
In [17]:
%time households, persons, fit = synthesize_all(starter, indexes=[ind])
In [ ]: