This repository contains a Streamlit-based visualization tool that maps various demographic, educational, and population metrics for Pakistan. The interactive tool plots markers on a map of Pakistan, where each marker represents a city. The tool allows users to analyze population data and schooling metrics by adjusting primary and secondary parameters.
Link of this tool Pakistan_pop_visualization_tool
- Interactive Map: Visualize demographic and education metrics across Pakistan.
- Customizable Parameters: Choose primary and secondary parameters to display, affecting marker size and color respectively.
- Province Filtering: Focus on specific provinces or display data for all of Pakistan.
- Detailed Metrics: Primary and secondary parameters include population, school count, household density, and growth rate among others.
The dataset used for this visualization includes the following columns:
- Demographic:
total_male_total,total_female_total,population_2023,households,density_2023, etc. - Education: Counts of schools by gender and level, e.g.,
primary_boys_schools,high_girls_schools. - Geographic: Coordinates (
lat,lng), area, and density.
- Clone the repository:
git clone https://github.com/arafayr/Pakistan-population-Analysis.git
- Navigate to the project directory:
cd Pakistan-Population-Visualization - Install the dependencies:
pip install -r requirements.txt
- Run the Streamlit application:
streamlit run pak_pop_streamlit.py
- Open the application in your browser
- Primary Parameter: Sets the marker size, representing metrics like population or number of schools.
- Secondary Parameter: Sets the marker color, allowing comparison of a secondary metric such as school density or household size.
- Province Filter: Select from provinces (Punjab, Sindh, KPK, Balochistan.) or view data for the entire country.
Here are some metrics available for selection:
- Population (
population_2023,population_2017,growth_rate) - Gender distribution (
total_male_total,total_female_total) - Educational facilities (e.g.,
primary_boys_schools,high_girls_schools,total_schools) - Geographic and household data (
area(km²),density_2023,households)
Contributions are welcome! Please fork the repository and submit a pull request.