# Generation 2 - Refines the rough csv data from Generation 1 into a standardized csv format common to all data sets. Prepares this data for importing to the database. # <codecell> gen2_cepalstat.build(config) data_list = gen3_utils.get_gen2_data(config) us.log(data_list[0:3]) # have a look at a sample of the data # <markdowncell> # Generation 3 - Load the Generation 2 data into the database. # <codecell> gen3_utils.standard_load_from_data_list(data_list) # <markdowncell> # Generation 4 - Build a php file that uses javascript to generate SVGs using the data in the database # <codecell> import imp imp.reload(gen4_utils) config = gen4_utils.build_gen4_config(config, title="Death rate - Tuberculosis", unit="Percentage of registered deaths") page = gen4_utils.build_d3_line_graph(config) # <codecell>
# <codecell> imp.reload(gen3_utils) data_list = gen3_utils.get_gen2_data(config) gen3_utils.standard_load_from_data_list(data_list) data_list[0:3] # <markdowncell> # Generation 4 - Build a php file that uses javascript to generate SVGs using the data in the database # <codecell> import imp imp.reload(gen4_utils) config = gen4_utils.build_gen4_config(config) page = gen4_utils.build_d3_line_graph(config) # <codecell> filelist # <codecell> str = "timeseries.php?s=" str = str + ",".join(filelist) str # <codecell>
# <codecell> imp.reload(gen3_utils) data_list = gen3_utils.get_gen2_data(config) gen3_utils.standard_load_from_data_list(data_list) data_list[0:3] # <markdowncell> # Generation 4 - Build a php file that uses javascript to generate SVGs using the data in the database # <codecell> import imp imp.reload(gen4_utils) config = gen4_utils.build_gen4_config(config) page = gen4_utils.build_d3_line_graph(config) # <codecell> filelist # <codecell> country_dict # <codecell>
gen2_cepalstat.build(config) data_list = gen3_utils.get_gen2_data(config) us.log(data_list[0:3]) # have a look at a sample of the data # <markdowncell> # Generation 3 - Load the Generation 2 data into the database. # <codecell> gen3_utils.standard_load_from_data_list(data_list) # <markdowncell> # Generation 4 - Build a php file that uses javascript to generate SVGs using the data in the database # <codecell> import imp imp.reload(gen4_utils) config = gen4_utils.build_gen4_config( config, unit="Percentage of women using contraception") page = gen4_utils.build_d3_line_graph(config) # <codecell> data_list[1][2]["description"] # <codecell>
# Generation 3 - Load the Generation 2 data into the database. # <codecell> data_list = gen3_utils.get_gen2_data(config) gen3_utils.standard_load_from_data_list(data_list) data_list[0][1] # <markdowncell> # Here are the names of the series: # <codecell> filelist # <markdowncell> # Generation 4 - Build a php file that uses javascript to generate SVGs using the data in the database # <codecell> import imp imp.reload(gen4_utils) config = gen4_utils.build_gen4_config(config, y_axis_label='$Unit of imperial mega gallons') page = gen4_utils.build_d3_line_graph(config) # <codecell>