Commit d1945233 authored by Manas Gabani's avatar Manas Gabani

Added Distribution routes for students page

parent d90bbc6f
No preview for this file type
This diff is collapsed.
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2006,1,10583,4618,912,42,316,,,0,School by Category,Government
2006,2,10620,5,20,2171,1692,,,13,School by Category,Government
2006,3,13090,523,414,2088,2713,,,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2007,1,10532,4645,961,54,310,,,0,School by Category,Government
2007,2,10692,3,27,2401,1845,,,5,School by Category,Government
2007,3,12985,46,139,2312,3026,,,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2008,1,14205,5119,1109,65,368,,,0,School by Category,Government
2008,2,10718,6,31,2324,1992,,,0,School by Category,Government
2008,3,13393,115,246,2468,3104,,,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2009,1,13425,6302,1062,106,415,,,1,School by Category,Government
2009,2,10717,6,20,2328,2020,,,0,School by Category,Government
2009,3,13438,85,283,3028,3133,,,2,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2010,1,13138,7064,1029,114,835,,,0,School by Category,Government
2010,2,10719,7,24,2304,2072,,,0,School by Category,Government
2010,3,13449,66,463,3041,3216,,,3,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2011,1,13096,7764,1103,128,447,,,0,School by Category,Government
2011,2,10577,9,26,2271,2118,,,0,School by Category,Government
2011,3,13453,105,525,2993,3292,,,2,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2012,1,13288,7843,288,131,147,1085,321,0,School by Category,Government
2012,2,10619,6,23,2279,1335,6,843,0,School by Category,Government
2012,3,13368,117,270,2928,1549,196,1786,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2013,1,13288,7867,115,135,103,1328,398,0,School by Category,Government
2013,2,10656,5,27,2322,1373,3,833,0,School by Category,Government
2013,3,13535,552,426,2881,1589,529,1825,6,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2014,1,13255,7978,101,133,93,1413,405,0,School by Category,Government
2014,2,10717,4,26,2202,1555,4,847,0,School by Category,Government
2014,3,13456,393,259,2883,1614,319,1817,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2015,1,13166,8026,98,133,92,1401,413,0,School by Category,Government
2015,2,10716,5,24,2131,1623,7,880,0,School by Category,Government
2015,3,13250,328,309,2858,1631,283,1829,0,School by Category,Government
......
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with _Sec,No_Response,Main_Dimension,Sub_Dimension
Year,State_Code,Primary_Only,Primary_with_Upper_Primary,Primary with_Upper_Primary_Sec_H.Sec,Upper_Primary_Only,Upper_Primary_with_Sec_H.Sec,Primary_with_Upper_Primary_Sec,Upper_Primary_with_Sec,No_Response,Main_Dimension,Sub_Dimension
2016,1,13181,8027,106,134,92,1407,401,0,School by Category,Government
2016,2,10730,5,26,2065,1733,6,924,0,School by Category,Government
2016,3,13226,345,338,2678,1956,293,1688,0,School by Category,Government
......
static/img/sample_trend_schools.jpeg

30.2 KB | W: | H:

static/img/sample_trend_schools.jpeg

28.8 KB | W: | H:

static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
static/img/sample_trend_schools.jpeg
  • 2-up
  • Swipe
  • Onion skin
......@@ -107,66 +107,117 @@
<div class="content-2">
<div class="new-students">
<div class="title">
Distribution across states
</div>
<form method="POST" action="/get_distribution_from_students">
Select state:
<select name="state" class="state">
<option value="Maharashtra">Maharashtra</option>
<option value="Gujarat">Gujarat</option>
<option value="Karnataka">Karnataka</option>
<option value="Kerela">Kerela</option>
Distribution across states for Elementary Enrolment in {% print(elementary_enrolment_category) %} Schools
</div>
<form method="POST" action="/get_distribution_for_elementary_enrolment">
Select Year:
<select name="year" class="year">
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
</select>
Select type:
<select name="type" class="type">
<option value="government">Government</option>
Select Category:
<select name="category" class="category">
<option value="govt">Government</option>
<option value="private">Private</option>
<option value="others">Madrasas and Others</option>
</select>
<input name="get_distribution_from_students" type="submit" value="Submit">
<input name="get_distribution_for_elementary_enrolment" type="submit" value="Submit">
</form>
{% if distribution_from_students %}
<div>
<img src="{{ url_for('static', filename=distribution_from_students) }}">
<img src="{{ url_for('static', filename=distribution_elementary_enrolment) }}">
</div>
{% else %}
<div>
<img src="{{ url_for('static', filename='img/sample_distribution_students.jpeg') }}">
</div>
{% endif %}
</div>
</div>
{% if distribution_from_students %}
<div class="cards">
<div class="card">
<div class="box">
<h1>2194</h1>
<h3>Government</h3>
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/students.png') }}" alt="">
</div>
<div class="content-2">
<div class="new-students">
<div class="title">
Top Performing States
</div>
<div class="card">
<div class="box">
<h1>53</h1>
<h3>Private</h3>
<table>
<tr>
<th>Rank</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>{% print(elementary_enrolment_summary['top3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>{% print(elementary_enrolment_summary['top3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>{% print(elementary_enrolment_summary['top3'][2]) %}</td>
</tr>
</table>
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/teachers.png') }}" alt="">
<div class="new-students">
<div class="title">
Worst Performing States
</div>
<table>
<tr>
<th>Rank</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>{% print(elementary_enrolment_summary['bottom3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>{% print(elementary_enrolment_summary['bottom3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>{% print(elementary_enrolment_summary['bottom3'][2]) %}</td>
</tr>
</table>
</div>
<div class="card">
<div class="box">
<h1>5</h1>
<h3>Others</h3>
</div>
<div class="icon-case">
<img src="{{ url_for('static', filename='img/schools.png') }}" alt="">
<div class="content-2">
<div class="new-students">
<div class="title">
Distribution across states for Rural Enrolment in {% print(rural_enrolment_category) %} Schools
</div>
<form method="POST" action="/get_distribution_for_rural_enrolment">
Select Year:
<select name="year" class="year">
<option value="2016">2016</option>
<option value="2015">2015</option>
<option value="2014">2014</option>
<option value="2013">2013</option>
<option value="2012">2012</option>
<option value="2011">2011</option>
<option value="2010">2010</option>
<option value="2009">2009</option>
<option value="2008">2008</option>
<option value="2007">2007</option>
<option value="2006">2006</option>
</select>
Select Category:
<select name="category" class="category">
<option value="govt">Government</option>
<option value="private">Private</option>
</select>
<input name="get_distribution_for_rural_enrolment" type="submit" value="Submit">
</form>
<div>
<img src="{{ url_for('static', filename=distribution_rural_enrolment) }}">
</div>
</div>
</div>
{% else %}
<div class="content-2">
<div class="new-students">
<div class="title">
......@@ -179,15 +230,15 @@
</tr>
<tr>
<td>1</td>
<td>Maharashtra</td>
<td>{% print(rural_enrolment_summary['top3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>Gujarat</td>
<td>{% print(rural_enrolment_summary['top3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>Karnataka</td>
<td>{% print(rural_enrolment_summary['top3'][2]) %}</td>
</tr>
</table>
</div>
......@@ -202,20 +253,20 @@
</tr>
<tr>
<td>1</td>
<td>West Bengal</td>
<td>{% print(rural_enrolment_summary['bottom3'][0]) %}</td>
</tr>
<tr>
<td>2</td>
<td>Orissa</td>
<td>{% print(rural_enrolment_summary['bottom3'][1]) %}</td>
</tr>
<tr>
<td>3</td>
<td>Bihar</td>
<td>{% print(rural_enrolment_summary['bottom3'][2]) %}</td>
</tr>
</table>
</div>
</div>
{% endif %}
</div>
</div>
</body>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment