You are on page 1of 15

Task 1.

Here, the task requires visualization of life expectancy from the world bank dataset, also provided on the
moodle. The task requires plotting of choropleth maps for the years 2000 and 2010. This requires
importing of the required dependencies, loading the life expectancy dataset, cleaning the dataset and
plotting the visualizations.

The steps are performed below:-

Importing the required dependencies

Loading the dataset

Removing the first three columns


Removing the null values

Plotting the visualizations


Below is Life expectancy choropleth visualization for 2000

Below is Life expectancy choropleth visualization for 2010


Task 1.2

In this task, it is required to portrait choropleth visualization of life expectancy based on given conditions
of the population. For this, I had to use the population dataset, clean it and then merge both the
datasets.

Below are the steps performed:-

Loading the population dataset

Toggling and Cleaning the population df


Plotting the visualizations
1.2.1

Filtering the dataset for required visualizations

Here, the requirement is to plot visualization of life expectancy of the countries having population less
than 138865014 for the year 2005
1.2.2

Here, I had to portrait visualization of life expectancy for the countries having population greater than
295516599 for the year 2005
1.2.3

Here, I have to plot the visualization of life expectancy of the year 2005 for countries having
population between 63179356 and 1147609924
1.2.4

Here, I have to perform visualization for the percentage change of life expectancy from year 2000 to
2010 for country having highest population.

Calculation of percentage change


1.2.5

Here, I have to present a scatter plot between mean population and mean life expectancy
Task 2

2.1 data preprocessing

In this step, I have loaded the dataset, performed the required cleaning operations for calculation of
subjectivity and polarity

The following steps were taken:-

Loading the tweet dataset

Preparing the dataset


2.2 polarity analysis

Here I have calculated the polarity and subjectivity by defining my function for calculating subjectivity
and polarity

Calculating the subjectivity and polarity


Plotting the polarity
2.3

Plotting the subjectivity

2.4

In this, I observed that Joe Biden tweets had mostly positive sentiments hence, the campaign message
were loud and clear to the audience.

You might also like