Learn practical skills, build real-world projects, and advance your career

Analyzing the World happiness report in recent 5 years

I regisitered the account of kaggle and downloaded the dataset from the open website. The World Happiness Report is a landmark survey of the state of global happiness.

The report gain global recognition as governments, organizations and civil society increasingly use happiness indicators to inform their policy-making decisions. Leading experts across fields – economics, psychology, survey analysis, national statistics, health, public policy and more – describe how measurements of well-being can be used effectively to assess the progress of nations. The reports review the state of happiness in the world today and show how the new science of happiness explains personal and national variations in happiness.
This tutorial covers the following topics:

  • Reading the csv file into a Pandas data frame
  • Retrieving data from Pandas data frames
  • Querying, soring, and analyzing data
  • Merging, grouping, and aggregation of data
  • Extracting useful information from dates
  • Basic plotting using line and bar charts
  • necessary using other plotting like scatterplot and some other operations to visualize data
  • Plotting multiple Matplotlib and Seaborn charts in a grid
  • Writing data frames to CSV files

I enrolled the course calledData Analysis with Python: Zero to Pandas at the end of August. Now I have finished 5 lessons. I really enjoyed the teaching method of Aakash N S. I think he is a good teacher with great patient.

I have learned so much about how to process data using Python and Pandas. Besides, Jupyter is really a good tool for us new learner to use.

Data Preparation and Cleaning

!pip install pandas
Requirement already satisfied: pandas in /opt/conda/lib/python3.9/site-packages (1.3.1) Requirement already satisfied: numpy>=1.17.3 in /opt/conda/lib/python3.9/site-packages (from pandas) (1.21.1) Requirement already satisfied: python-dateutil>=2.7.3 in /opt/conda/lib/python3.9/site-packages (from pandas) (2.8.2) Requirement already satisfied: pytz>=2017.3 in /opt/conda/lib/python3.9/site-packages (from pandas) (2021.1) Requirement already satisfied: six>=1.5 in /opt/conda/lib/python3.9/site-packages (from python-dateutil>=2.7.3->pandas) (1.16.0)
import pandas as pd

We load the file.