Learn practical skills, build real-world projects, and advance your career
cognitiveclass.ai logo

Area Plots, Histograms, and Bar Plots

Estaimted time needed: 30 minutes

Objectives

After complting this lab you will be able to:

  • Create additional labs namely area plots, histogram and bar charts

Exploring Datasets with pandas and Matplotlib

Toolkits: The course heavily relies on pandas and Numpy for data wrangling, analysis, and visualization. The primary plotting library that we are exploring in the course is Matplotlib.

Dataset: Immigration to Canada from 1980 to 2013 - International migration flows to and from selected countries - The 2015 revision from United Nation's website.

The dataset contains annual data on the flows of international migrants as recorded by the countries of destination. The data presents both inflows and outflows according to the place of birth, citizenship or place of previous / next residence both for foreigners and nationals. For this lesson, we will focus on the Canadian Immigration data.

Downloading and Prepping Data

Import Primary Modules. The first thing we'll do is import two key data analysis modules: pandas and Numpy.