The World Factbook provides information on the history, people, government, economy, geography, communications, transportation, military, and transnational issues for 267 world entities.” In this blog I’m going to work on dataset provided by the CIA, public information, and can be obtained from https://www.cia.gov/library/publications/the-world-factbook/

The data provided, which you’ll be able to download from my notebook, is in SQLite format which will give me the opportunity to show you how you can do SQL stuff in Python easily. In this exercise I was able to extract interesting information, like:

In my analysis, I’ve made use of the following python modules:

  1. Pandas
  2. sqlite3
  3. math
  4. matplotlib.pyplot

To make this more practical and realistic, I’ve edited my code in Jupyter notebook and uploaded it into my github repository. To access it, click here.

NOTE: github won’t display pretty page output if you’re on mobile. Please use either tablet/computer, or request “desktop” version on your mobile device.