def setup_data():
with open(os.path.join(rootpath, '<STR_LIT>')) as f:<EOL><INDENT>get_id = json.load(f)<EOL><DEDENT>county_codes = [x['<STR_LIT:id>'] for x in get_id['<STR_LIT>']]<EOL>county_df = pd.DataFrame({'<STR_LIT>': county_codes}, dtype=str)<EOL>df = pd.read_csv(os.path.join(rootpath, '<STR_LIT>'),<EOL>na_values=['<STR_LIT:U+0020>'])<EOL>df['<STR_LIT>'] = df['<STR_LIT>'].astype(str)<EOL>merged = pd.merge(df, county_df, on='<STR_LIT>', how='<STR_LIT>')<EOL>return merged.fillna(method='<STR_LIT>')<EOL>
Import economic data for testing.