Import Package

Import Data

What countries or regions rank the highest in overall happiness and each of the six factors contributing to happiness? How did country ranks or scores change between the 2018 and 2019 as well as the 2016 and 2017 reports, for example? Did any country experience a significant increase or decrease in happiness?

Use the read_csv() function to import data.

Heatmap

Kernel Density Estimation

Pairplot, Jointplot

Plotly

Plotly is an open-source library that can be used for data visualization and understanding data easily. Plotly supports various types of plots with the interaction feature. For example, when your mouse is hovering at any data points in the graph, the interactive feature will show the x and y coordinates.

Bar Chart

A bar chart is a pictoral representation of data that presents categorical data with rectangular bars. The heights or lengths of the rectangular bars are proportional to the values that the dataset shows. We require a dataset that contains the numerical values of variable that represents the quantity/frequency of each category.

Using bar chart we can compare the values/population from each category and make inference on choosing (for example) the appropriate ranges to communicate to the audience. Some bar charts are more complicated. The stacked bar charts can represent the proportion of each subcategory under a big category.

Violinplot

Violin plot shows the distribution of numerical data across several levels of categorical variables, such the the distribution could be compared.