Welcome to the World Happiness Challenge! Use the provided dataset to explore, analyze, and visualize insights related to global happiness.
The dataset is located in the data/ folder:
data/data-2019.csv
It contains country-level data for:
- Happiness Score
- GDP per capita
- Social support
- Life expectancy
- Freedom
- Generosity
- Perceptions of corruption
- And more
- Calculate average happiness score by region.
- Rank countries by GDP — show both top 10 and bottom 10.
- Compute the correlation between GDP and happiness score (simple correlation is fine).
- Generate a bar chart or scatter plot to visually support your analysis.
- A Python, JavaScript, or Bash script that:
- Outputs the required summary statistics
- Optionally saves a chart image
- The
mainbranch is a mess (titles with random letters, random files), on purpose. - Your task is to use this template to create a private repository on your GitHub account
- Your private repository should have only one
mainbranch. - Feel free to use any kind of git commands to do so.
- You may use Python, JavaScript, or Bash.
- Keep it simple, clean, and well-commented.
- Feel free to use libraries like Pandas, Matplotlib, D3.js, etc.
- One script is enough (no web servers or complex apps needed).
About 1–2 hours.
Please do not spend more than approximately 3 hours on this exercise.
The goal is not to build something perfect or production-ready, but to show how you work:
- your reasoning,
- code clarity,
- pragmatic decisions,
- and ability to communicate assumptions and trade-offs.
Clean and maintainable code is preferred over unnecessary complexity.
- Update documentation
- Add revelant documentation
- Add useful features, even if you are not asked to