Skip to content

jortega1/python-population

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pre-requisites:

  • Python installed

    • flask installed
    • pandas installed

Tasks :

  • Return what is most populated province in Canada? (Easy)

    This is answered by localhost:///population/most
  • Return which country immigrants are born in Alberta (Advanced)

    This is answered by localhost:///immigrants/country/most

How to use

  • load data to database

    • Command: python load_pop_data.py
    • Command: python load_immigrant_data
  • check if 'stats_can_population.sqlite' and 'stats_can_immigrants.sqlite' file has been generated

  • if it is generated, run the server

    • Command: python server.py
  • After running the server, to view the valid URLs go to, localhost:5000/urls

Contents

Data

About

A small project for learning ETL in Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages