returnrender_template('index.html',index_summary=index_summary,main_dimension_index="Elementary Enrolment by School Category",main_dimension_from_index=main_dimension_from_index,facilities_from_index=facilities_from_index)
teachers_by_category_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_teachers_by_category),final_df,latest_year,ylabel="Number of Teachers / Population",main_dimension="Teachers by School Category",sub_dimension=teachers_category)
teachers_by_educational_qualification_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_teachers_by_educational_qualification),final_df,latest_year,ylabel="Number of Teachers / Population",main_dimension="Teachers by Educational Qualification",sub_dimension=teachers_qualification)
schools_by_category_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_schools_by_category),final_df,latest_year,ylabel="Number of Schools / Population",main_dimension="School by Category",sub_dimension=school_category)
total_enrolment_by_category(os.path.join(app.config['UPLOAD_FOLDER'],trend_schools),final_df,main_dimension='School by Category',state_code=default_state_code,ylabel='Number of Schools')
schools_summary=get_dimension_wise_summary(final_df,default_state_code,"School by Category")
rural_enrolment_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_rural_enrolment),final_df,requested_year,ylabel="Enrolments / Population",main_dimension="Elementary Enrolment by School Category",sub_dimension=rural_enrolment_category)
teachers_by_category_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_teachers_by_category),final_df,latest_year,ylabel="Number of Teachers / Population",main_dimension="Teachers by School Category",sub_dimension=teachers_category)
teachers_by_educational_qualification_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_teachers_by_educational_qualification),final_df,latest_year,ylabel="Number of Teachers / Population",main_dimension="Teachers by Educational Qualification",sub_dimension=teachers_qualification)
teachers_by_educational_qualification_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_teachers_by_educational_qualification),final_df,requested_year,ylabel="Number of Teachers / Population",main_dimension="Teachers by Educational Qualification",sub_dimension=teachers_qualification)
schools_by_category_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_schools_by_category),final_df,latest_year,ylabel="Number of Schools / Population",main_dimension="School by Category",sub_dimension=school_category)
total_enrolment_by_category(os.path.join(app.config['UPLOAD_FOLDER'],trend_schools),final_df,main_dimension='School by Category',state_code=default_state_code,ylabel='Number of Schools')
schools_summary=get_dimension_wise_summary(final_df,default_state_code,"School by Category")