From a89fd842ebd2de92e245588c530b868cc783e3ce Mon Sep 17 00:00:00 2001 From: Alex Simoes Date: Wed, 23 Dec 2015 14:57:55 -0500 Subject: [PATCH] update ygo for new nested vars --- acs/occupation/ygo_earnings_5yr.yaml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/acs/occupation/ygo_earnings_5yr.yaml b/acs/occupation/ygo_earnings_5yr.yaml index da0eb46..16f94ce 100644 --- a/acs/occupation/ygo_earnings_5yr.yaml +++ b/acs/occupation/ygo_earnings_5yr.yaml @@ -1,13 +1,20 @@ global: - concat_border: "sumlevel" - name: acs + # concat_border: "sumlevel" + name: acs_yr use_schema: True - source: "data/acs/___.json" - output: "data/output/acs////" + source: "data/acs_yr/___.json" + output: "data/output/acs_yr/___" filetype: json + source_vars_nesting: + estimate: + sumlevel: + - year + - tbl + - column source_vars: - year: [2013] + estimate: [1, 5] + year: [2013, 2014] tbl: ["B24012"] column: start: 3 @@ -30,7 +37,7 @@ global: zfill: 3 preprocess: func: "src.plugins.preprocess.acs_preprocess" - web_paths: "http://api.census.gov/data//acs5?get=GEOID,_E,_M&for=&key=$ACS_KEY" + web_paths: "http://api.census.gov/data//acs?get=GEOID,_E,_M&for=&key=$ACS_KEY" import_to_db: True db_settings: