Skip to content

homework_3 #99

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexanderquispe opened this issue Apr 23, 2025 · 0 comments
Open

homework_3 #99

alexanderquispe opened this issue Apr 23, 2025 · 0 comments

Comments

@alexanderquispe
Copy link
Contributor

alexanderquispe commented Apr 23, 2025

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/)

Image

Follow the same format as the image for your Streamlit website.
Data Description | Static Maps | Dynamic Maps
Image

🗺️ 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:

  1. For each primary school, create a 5 km radius.
  2. Count how many high schools fall within this radius.
  3. Use the centroid of each primary school as the center of the circle.
  4. Identify:
    • The primary school with the fewest high schools nearby.
    • The primary school with the most high schools nearby.
  5. 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:

Image


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

Image

📅 Deadline: [30/04/2025]

Example Outputs

Data Decription

Image

Maps Statics

Image

Maps Dinamycs

Image
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant