This repository contains scripts for Terrorism Predictive Analysis. This can be used to find the trend every type of terrorist attacks which not only saves resources to but can also be used to allocate proper measures before the actual incident by means of visualisation.
This app contains three tools
-
Map Tool It generates a Scatter Geo Map with markers for highlighting the lattitude and logitude where the incident happened based on the filters provided in the sidebar.
-
Chart Tool It generates a Stacked Line Chart images of the frequncy of terrorist incidenta each year.
-
Infographics Tool It is used to identify problems in terrorism. Types of patterns could be selected in the sidebar and main display produces filters with patterns in whole world as default.
To run the app please make sure you have the following installed
- Python 3
- Pip
Complete code is written in Python 3 with major dependencies listed below
- Dash
- Plotly Express
- Pandas
- Bootstrap
File Path | Web URL |
---|---|
app.py | - |
index.py | - |
./apps/home | / |
./apps/map | /map |
./apps/chart | /chart |
./apps/infographics | /infographics |
./apps/densityGraph | /densityGraph |
./apps/peopleKilled | /peopleKilled |
./apps/weaponUsed | /weaponUsed |
./apps/attackType | /attackType |
./apps/compAttack | /compAttack |
./apps/deathPattern | /deathPattern |
The following are the steps to run the app
- Clone the repository
git clone https://github.com/VinayakTekade/Global-Terrorism-Analytics.git
- Place your .csv data in ./apps/data directory
cp <your data> ./apps/data/gloabal_terror_2.csv
- Install all the dependencies
pip install -r requirements.txt
- Start the app using index.py
py index.py
See the full list of contributors who participated in this project and statistics.
Report here in detail answering these questions:
- What steps did you take to make the bug appear?
- How can the bug be fixed? (In case you know)
- Which OS and which all packages/software/dependencies are you using?
- Have you tried any troubleshooting steps such as a reboot for example?