main_dimension_overall(os.path.join(app.config['UPLOAD_FOLDER'],main_dimension_from_index),final_df,main_dimension="School by Category",ylabel="Number of Schools")
returnrender_template('index.html',main_dimension_index="Number of Schools",main_dimension_from_index=main_dimension_from_index,facilities_from_index=facilities_from_index)
returnrender_template('index.html',index_summary=index_summary,main_dimension_index="Number of Schools",main_dimension_from_index=main_dimension_from_index,facilities_from_index=facilities_from_index)
main_dimension_overall(os.path.join(app.config['UPLOAD_FOLDER'],main_dimension_from_index),final_df,main_dimension="School by Category",ylabel="Number of Schools")
returnrender_template('index.html',main_dimension_index="Number of Schools",main_dimension_from_index=main_dimension_from_index,facilities_from_index=facilities_from_index)
returnrender_template('index.html',index_summary=index_summary,main_dimension_index="Number of Schools",main_dimension_from_index=main_dimension_from_index,facilities_from_index=facilities_from_index)
elementary_enrolment_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_elementary_enrolment),final_df,latest_year,ylabel="Enrolments / Population",main_dimension="Elementary Enrolment by School Category",sub_dimension=rural_enrolment_category)
total_enrolment_by_category(os.path.join(app.config['UPLOAD_FOLDER'],trend_elementary_enrolment),final_df,main_dimension='Elementary Enrolment by School Category',state_code=default_state_code,ylabel='Enrolments')
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)
...
...
@@ -97,8 +101,10 @@ def teachers():
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)
...
...
@@ -116,158 +122,168 @@ def schools():
rural_schools_by_category_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_rural_schools_by_category),final_df,latest_year,ylabel="Number of Schools / Population",main_dimension="Rural Schools",sub_dimension=rural_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')
elementary_enrolment_summary=statewise_distribution(os.path.join(app.config['UPLOAD_FOLDER'],distribution_elementary_enrolment),final_df,requested_year,ylabel="Enrolments / Population",main_dimension="Elementary Enrolment by School Category",sub_dimension=elementary_enrolment_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,requested_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,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,requested_year,ylabel="Number of Schools / Population",main_dimension="School by Category",sub_dimension=school_category)
minor_repair=sum(df_fil[(df_fil['Main_Dimension']==main_dimension)&(df_fil['Year']==latest_year)&(df_fil['Sub_Dimension']=='Need Minor Repair')]['total'])
major_repair=sum(df_fil[(df_fil['Main_Dimension']==main_dimension)&(df_fil['Year']==latest_year)&(df_fil['Sub_Dimension']=='Need Major Repair')]['total'])
drinking_water=sum(df_fil[(df_fil['Main_Dimension']==main_dimension)&(df_fil['Year']==latest_year)&(df_fil['Sub_Dimension']=='Schools with Drinking Water')]['total'])
girls_toilet=sum(df_fil[(df_fil['Main_Dimension']==main_dimension)&(df_fil['Year']==latest_year)&(df_fil['Sub_Dimension']=='Schools with Girls\' Toilet')]['total'])
ramp=sum(df_fil[(df_fil['Main_Dimension']==main_dimension)&(df_fil['Year']==latest_year)&(df_fil['Sub_Dimension']=='Schools with Ramp')]['total'])