Skip to content

A Data Visualisation & Analysis project using the Plotly library on Python, coded to bring one of my favourite books 'Factfulness' to life.

License

Notifications You must be signed in to change notification settings

iaks23/PortfolioProject1-Gapminder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

forthebadge made-with-python ForTheBadge makes-people-smile ForTheBadge built-with-love CATS

Stars ! Open Source? Yes! made-by-e PR Welcome !

Data Visualization & Analysis using Gapminder

"The world cannot be understood without numbers. But the world cannot be understood with numbers alone.” - Hans Rosling, Factfulness

Table of Contents


💡 Obective

Before we begin, let me ask you a question,

In the last 20 years, the proportion of the world population living in extreme poverty has…

  • [] Almost doubled
  • [] Remained more or less the same
  • [] Almost halved

hint: it's really never as bad as you think it is.

When we see think about the world, we think wars, pandemic, hunger, and extreme poverty. With this pre-conceived picture painted in our heads we think that the world today is in a really bad place and is only going to get worse. The correct answer for the above question is Option C, i.e. the majority of the world population today have moved out of extreme poverty and are living a decent life.

The late Hans Rosling, discovered that only 7% of the entire world population got that right. He asked a few more questions, and realized that almost everybody universally got most questions wrong.

In fact, on an average, a chimpanzee scores better than a nobel laureate!

chimpgif

Feel like you're up for a challenge? Take the quiz yourself!

And so, in order to fight global ignorance and to make us stress-free about the world, Hans began Gapminder, and also published the book Factfulness, which contains accurate, factual data that tells us how to battle negative world views, ignorance, and misconceptions. They are some of the best statistics that you will ever see!

Inspired by the book, I wanted to recreate these joyful graphs myself to see the progress humanity has made in the span of just 50 years. Reading the book was truly a humbling experience, and only increased my hunger for curiosity. I hope this mini project has the same effect for you.

sparkjoy

⚙️ Pre-Requisites

To run this program or to try it out for yourself, make sure to have Python 3 installed in your computer with an IDE of your choice. I have used the Jupyter Notebook which comes as a part of the Anaconda library. You can find more details about installation and setup here

Mac OS users can follow this tutorial.

You will also require Pip in order to install certain packages such as Pandas , Numpy and Plotly

Once you have Python installed, run this command to get Pip.

$ python get-pip.py

‼️ Do leave me a message in case you face issues on installation!

🌍 Gapminder

The gapminder dataset I am working with is built-in and available on Plotly. It has a total of 1708 rows.

The timeline of the dataset is from 1952-2007.

The main columns I will be working with are,

  • Year
  • gdpPercap
  • lifeExp
  • Pop

🙆🏻‍♀️ Statistics That Bring Joy

Plotting LifeExp against Year for a Specific Country

indiachart

Joyful Fact #1

On an average a person in 1950's India was living upto 37.3 years, but with significant advancements the life expectancy has moved all the way up to 65 years! Life expectancy all around the world today is around 70 years thanks to better access to healthcare, food, and even education.

💡 tip: Check out stats for countries like Iran & Iraq! You'd be really surprised!

Plotting GdpPerCap against LifeExp for Individual Countries

In his book, Factfulness, Hans stresses that we move away from the terms "developing" v/s "developed" nations and proposes 4 LEVELS to classify the world, in order to overcome "The Gap Instinct"

Here's the GDP per capita and life expectancy for countries in the year 1972.

gdp1972

It is understandable that most low-income countries have low life expectancy. But have the poor gotten poorer?

gdp2007

Joyful Fact #2

Within 30 years, most countries have pushed themselves from extreme poverty to middle-class standards. Ofcourse, in 2021 this number is even greater! There is no "gap" anymore since a majority of the countries fall in the middle. Nearly 85% percent of the world has moved to "developed" (i.e. Level 2 & 3), yet the worldview has not changed.

The Infamous Bubble Plot

How cool has humankind been these past few years? What have we not tackled and how much have we leaped!

animatedcountry

The journey of our world, in 10 seconds or less.

animatedworld

💡 tip: Check out how the world has evolved in terms of GdpPerCap!

🧐 Conclusion

There is no denying that things are bad, but the world is getting better. Use free data sources around you to stay updated, aware, and factful.


🌟 if you found this project useful!

© Akshaya Parthasarathy, 2021

If you want to talk about this amazing book or provide feedback about my project, don't hesitate to leave me a message!

LINKEDIN INSTAGRAM REDDIT

About

A Data Visualisation & Analysis project using the Plotly library on Python, coded to bring one of my favourite books 'Factfulness' to life.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published