In [1]:
import pandas as pd
import synthpop.zone_synthesizer as zs
In [3]:
hh_marginal_file = 'input_data/hh_marginals.csv'
person_marginal_file = 'input_data/person_marginals.csv'
hh_sample_file = 'input_data/household_sample.csv'
person_sample_file = 'input_data/person_sample.csv'
In [4]:
hh_marg, p_marg, hh_sample, p_sample, xwalk = zs.load_data(hh_marginal_file, person_marginal_file, hh_sample_file, person_sample_file)
In [6]:
hh_marg.head()
Out[6]:
In [7]:
p_marg.head()
Out[7]:
In [8]:
p_sample.head()
Out[8]:
In [9]:
all_households, all_persons, all_stats = zs.synthesize_all_zones(hh_marg, p_marg, hh_sample, p_sample, xwalk)
In [10]:
all_households.head()
Out[10]:
In [11]:
all_persons.head()
Out[11]:
In [12]:
all_persons, all_households, all_stats = zs.multiprocess_synthesize(hh_marg, p_marg, hh_sample, p_sample, xwalk)
In [13]:
all_persons.head()
Out[13]:
In [14]:
all_households.head()
Out[14]:
In [15]:
all_stats
Out[15]:
In [ ]:
In [ ]: