-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Homework Assignment: Geospatial Analysis of Schools in Peru
1. Repository Setup
- Create a new GitHub repository for your project. The repo has to be public, and the name should be "High-School-Access-Peru"
- Use the Rodrigo John Paradox repository as a template.
2. Geospatial Analysis with GeoPandas
📥 Download the Dataset
Download the Excel file from the link while following the guidelines shown in the screenshot. Leave it just as it appears in the screenshot: "Seleccionar" for Department, "Seleccionar" for Province, and "Seleccionar" for District. Then click on "Buscar" and proceed to export the Excel file with the data.
- Use the Schools dataset provided (or indicated by the instructor). [Link]
(https://sigmed.minedu.gob.pe/mapaeducativo/)
Follow the same format as the image for your Streamlit website.
Data Description | Static Maps | Dynamic Maps

🗺️ Task 1: Static Maps by School Level - for all districts in the country
Create 3 static maps showing the distribution of schools by district:
- One for Inicial
- One for Primaria
- One for Secundaria
For each map:
- Count and sum the total number of schools per district.
- Use GeoPandas to plot the results.
📍 Task 2: Proximity Analysis
Regions to Analyze:
- Huancavelica
- Ayacucho
Instructions:
- For each primary school, create a 5 km radius.
- Count how many high schools fall within this radius.
- Use the centroid of each primary school as the center of the circle.
- Identify:
- The primary school with the fewest high schools nearby.
- The primary school with the most high schools nearby.
- Plot the following using GeoPandas:
- The selected primary school (centroid)
- The 5 km circumference
- All high schools within the circle
3. Interactive Mapping with Folium
🗺️ Task 1: Choropleth Maps - For all the districts in the country
Create a Folium choropleth map with three layers, one for each school level:
- Layer 1 — Inicial
- Layer 2 — Primaria
- Layer 3 — Secundaria
Use the same count-sum logic per district as in GeoPandas.
📍 Task 2: High School Proximity Visualization - Only for Huancavelica and Ayacucho
Using Folium and OpenStreetMap layers, recreate the proximity plots from GeoPandas:
- The primary school with the fewest and most nearby high schools.
- Show:
- The centroid primary school
- The 5 km radius
- All high schools inside the radius
📝 Include a short written analysis describing the geographic context of these two cases. Consider:
- Terrain
- Accessibility
- Urban vs. rural characteristics
Example:
4. Application Deployment with Streamlit
Create a Streamlit app with three main tabs:
🗂️ Tab 1: Data Description
- Describe the unit of analysis
- Explain data sources
- Mention any assumptions or preprocessing
🗺️ Tab 2: Static Maps
- Embed your GeoPandas static maps.
🌍 Tab 3: Dynamic Maps
- Include interactive maps using Folium + GeoPandas
📌 Notes
- Use clean and reproducible code.
- Follow best practices for data visualization and analysis.
- Comment your code clearly to explain each step.
- Don't forget to include your link in the repository.
- In the data description, they can perform the analysis on schools in Peru
📅 Deadline: [30/04/2025]
Example Outputs
Data Decription
Maps Statics
Maps Dinamycs

In this case, 2 primary schools were found with 22 secondary schools around them (green circle), and several primary schools without any secondary schools within a 5 km radius (red circle).
Don't forget to upload the link to your repository in the following Drive (your website must be linked).
https://docs.google.com/spreadsheets/d/1vrmzJIMM2Q7l9QTmqRsHGb6af6w6nXROe9yIuSl4WLE/edit?gid=0#gid=0




