A Streamlit web application for exploring and visualizing Global Peace Index data.
This project analyzes Global Peace Index (GPI) data from 2008-2022, providing interactive visualizations to explore peace rankings and trends across different countries and regions.
- Interactive data visualization using Streamlit
- Analysis of peace index trends over time
- Country and regional comparisons
- Data exploration of GPI scores and domains
- Global Peace Index 2022 overall scores and domains (2008-2022)
- CSV data for detailed analysis
- Clone this repository:
git clone https://github.com/yourusername/your-repo-name.git
cd your-repo-name
- Create and activate a virtual environment:
python -m venv .venv
# On Windows (PowerShell)
.venv\Scripts\Activate.ps1
# On Windows (Git Bash)
source .venv/Scripts/activate
# On Mac/Linux
source .venv/bin/activate
- Install required packages:
pip install streamlit pandas numpy matplotlib seaborn
Run the Streamlit application:
streamlit run streamlit_app.py
The app will open in your browser at http://localhost:8501
streamlit_app.py
- Main Streamlit applicationglobal_peace_index.csv
- GPI data in CSV formatGPI-2022-overall-scores-and-domains-2008-2022.xlsx
- Complete Excel datasetrequirements.txt
- Python package dependencies (if created)
The Global Peace Index (GPI) is produced by the Institute for Economics and Peace (IEP). It measures the relative position of nations' and regions' peacefulness based on various indicators including ongoing conflict, safety and security, and militarization.
Feel free to fork this project and submit pull requests for improvements.
This project is for educational and analysis purposes.