- How are populations around the world projected to increase?
- Has there been a significant deviation between proportions of males and females in a particular country in the past and how is it forecast to change into the future.
Python was used to clean the data and PostgreSQL was used to store the data. A connection was made to PostgreSQL and the data was turned into an API on the Flask web app so it could be easily accessed. Once this was done an interactive dashboard was created using HTML/CSS/JavaScript and using the Pytho package Flask, a web application was created.
To use the dashboard enter the year you would like to filter in the from and click "Choose Country". Then once the map displays click on the country you would like to see information for. Then a table and graph will appear underneath the map.
- Python
- HTML
- CSS
- JavaScript
- PostgreSQL
- Pandas
- GeoPandas
- SQLAlchemy
- Flask
- Matplotlib
- D3
- Leaflet
- ScrollReveal
- Plotly
-
Ukraine, Latvia and Estonia started off as the countries with greatest difference between gender. However, middle east took over this place and may stay on top in future.
-
China started as the Most populated country in 1951 but, however, in future, India may become the most populated country with 1.44 Bn people
NOTE: Make sure there is no database named populations in PGAdmin
- Set your path to this folder. (If you are using Visual Studio Code just click File > Open Folder > Populations_In_Countries
- Enter your password for PostgreSQL in the config file.
- Then run the file app.py.
-
Before running any of the jupyter notebooks please install needed packages running the following code in the terminal.
pip install pandas pip install sqlalchemy pip install geopandas pip install Flask-sqlalchemy pip install matplotlib
Or run this code in the first Jupyter Notebook
! pip install --user pandas
! pip install --user sqlalchemy
! pip install --user geopandas
! pip install --user Flask-sqlalchemy
-
Run the file DataCleaning.ipynb
-
Run the file Conclusions.ipynb