" <td>Teachers by Educational Qualification</td>\n",
" <td>Graduate</td>\n",
" <td>35004</td>\n",
" <td>128603.0</td>\n",
" <td>3.673952</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11470</th>\n",
" <td>2014</td>\n",
" <td>TELANGANA</td>\n",
" <td>36</td>\n",
" <td>Teachers by Educational Qualification</td>\n",
" <td>Post Graduate</td>\n",
" <td>35004</td>\n",
" <td>78034.0</td>\n",
" <td>2.229288</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11471</th>\n",
" <td>2014</td>\n",
" <td>TELANGANA</td>\n",
" <td>36</td>\n",
" <td>Teachers by Educational Qualification</td>\n",
" <td>M.Phil / Ph.D</td>\n",
" <td>35004</td>\n",
" <td>1869.0</td>\n",
" <td>0.053394</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11472</th>\n",
" <td>2014</td>\n",
" <td>TELANGANA</td>\n",
" <td>36</td>\n",
" <td>Teachers by Educational Qualification</td>\n",
" <td>Post Doctorate</td>\n",
" <td>35004</td>\n",
" <td>0.0</td>\n",
" <td>0.000000</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11473</th>\n",
" <td>2014</td>\n",
" <td>TELANGANA</td>\n",
" <td>36</td>\n",
" <td>Teachers by Educational Qualification</td>\n",
" <td>No Response</td>\n",
" <td>35004</td>\n",
" <td>6.0</td>\n",
" <td>0.000171</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>11474 rows × 8 columns</p>\n",
"</div>"
],
"text/plain": [
" Year State_Name State_Code \\\n",
"0 2013 JAMMU & KASHMIR 1 \n",
"1 2013 JAMMU & KASHMIR 1 \n",
"2 2013 JAMMU & KASHMIR 1 \n",
"3 2013 JAMMU & KASHMIR 1 \n",
"4 2013 JAMMU & KASHMIR 1 \n",
"... ... ... ... \n",
"11469 2014 TELANGANA 36 \n",
"11470 2014 TELANGANA 36 \n",
"11471 2014 TELANGANA 36 \n",
"11472 2014 TELANGANA 36 \n",
"11473 2014 TELANGANA 36 \n",
"\n",
" Main_Dimension Sub_Dimension \\\n",
"0 School by Category Government \n",
"1 School by Category Private \n",
"2 School by Category Madrasas & Unrecognised \n",
"3 Rural Schools Government \n",
"4 Rural Schools Private \n",
"... ... ... \n",
"11469 Teachers by Educational Qualification Graduate \n",
"11470 Teachers by Educational Qualification Post Graduate \n",
"11471 Teachers by Educational Qualification M.Phil / Ph.D \n",
"11472 Teachers by Educational Qualification Post Doctorate \n",
"11473 Teachers by Educational Qualification No Response \n",
"\n",
" Total_Population total total_by_pop \n",
"0 12549 23234.0 1.851462 \n",
"1 12549 5073.0 0.404255 \n",
"2 12549 0.0 0.000000 \n",
"3 12549 21708.0 1.729859 \n",
"4 12549 3584.0 0.285600 \n",
"... ... ... ... \n",
"11469 35004 128603.0 3.673952 \n",
"11470 35004 78034.0 2.229288 \n",
"11471 35004 1869.0 0.053394 \n",
"11472 35004 0.0 0.000000 \n",
"11473 35004 6.0 0.000171 \n",
"\n",
"[11474 rows x 8 columns]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"df"
]
},
{
"cell_type": "markdown",
"id": "002e2939",
"metadata": {},
"source": [
"## Total schools"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "77729b50",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_61569/1542341961.py:9: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2271420292.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1307616346.py:7: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2577340614.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2425626090.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/3525156651.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/356455259.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2919692743.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/3791890994.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/3895896839.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1933095301.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/4134182718.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1010963564.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1869549921.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"total_classrooms_by_needmajorrepair(df,7,\"Need Major Repair\",file_name)\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "efd2f8e0",
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"id": "3ba17847",
"metadata": {},
"source": [
"## School facilities"
]
},
{
"cell_type": "code",
"execution_count": 20,
"id": "d0dd73f0",
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/tmp/ipykernel_61569/2056682837.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2401885379.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1816513266.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/2792766097.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/1076733821.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/4137262132.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",
"/tmp/ipykernel_61569/3013851162.py:6: FutureWarning: The default value of numeric_only in DataFrameGroupBy.sum is deprecated. In a future version, numeric_only will default to False. Either specify numeric_only or select only columns which should be valid for the function.\n",