#START_STEP1
from dataframes.lets_run_it_1 import *
from dataframes.lets_run_it_2 import *

df = create_raw_dataset_for_presentation()
with open("templates/snippets_html/raw_data.html", "w", encoding="utf-8") as f:
    f.write(df)

df = create_data_check_on_number_of_rows()
with open("templates/snippets_html/raw_data_no_rows_checks.html", "w", encoding="utf-8") as f:
    f.write(df)

df = create_data_check_on_sum_of_values()
with open("templates/snippets_html/raw_data_sum_of_values_checks.html", "w", encoding="utf-8") as f:
    f.write(df)

#END_STEP1




#START_STEP2
from charts.step_2_data_boundaries import *
# this does several things, gets a df, creates html table , and creates chart
df = databoundary_table()
with open("templates/snippets_html/step2_counts.html", "w", encoding="utf-8") as f:
    f.write(df)
databoundary_chart("output/snippets_png/step2_counts.png")

# note with the above we put it in templates and therefore to get it into markdown we use include with the jinja

# this one just creates a chart
from charts.step_2_data_boundaries_after_truncation import *
databoundary_chart_after_truncation("output/snippets_png/step2_counts_after_truncation.png")






#END_STEP2




#START_STEP5
from charts.step5_column_of_means import *
column_of_means_chart("output/snippets_png/step5_column_of_means.png")
#END_STEP5




#START_STEP9
from charts.step9_component_scores_distribution import *
component_scores_distribution_chart("output/snippets_png/step9_component_scores_distribution.png")
#END_STEP9









#START_GRAPHS
# create chart of available data 


import graphs.parameterised_graph_builder
import graphs.test
import graphs.pcs_and_normal_distribution
import graphs.overall_solution
import graphs.industry_pca

graphs.test.create_flowchart("output/snippets_png/test")
graphs.pcs_and_normal_distribution.create_flowcharts("output/snippets_png/pcs_and_normal_distribution")
graphs.overall_solution.create_flowcharts("output/snippets_png/overall_solution")
graphs.industry_pca.create_flowcharts("output/snippets_png/industry_pca")
graphs.parameterised_graph_builder.create_flowcharts(data_file="graphs/data/flowchart_data.json",filename="output/snippets_png/paramtest",file_format="png")





graphs.parameterised_graph_builder.create_flowcharts(data_file="graphs/data/classical_step2_data.json",filename="output/snippets_png/classical_step2_data",file_format="png")

graphs.parameterised_graph_builder.create_flowcharts(data_file="graphs/data/classical_step2_first_databoundary_chart.json",filename="output/snippets_png/classical_step2_more_first_data_boundary_chart",file_format="png")
graphs.parameterised_graph_builder.create_flowcharts(data_file="graphs/data/classical_step2_more_insights_data.json",filename="output/snippets_png/classical_step2_more_insights_data",file_format="png")



#END_GRAPHS



This site uses Just the Docs, a documentation theme for Jekyll.