fetch_country_happiness#
- skrub.datasets.fetch_country_happiness(data_home=None)[source]#
Fetch the happiness index dataset (regression) available at skrub-data/skrub-data-files
This is a regression use-case, where the goal is to predict the happiness index. The dataset contains data from the 2022 World Happiness Report, and from the World Bank open data platform.
- Parameters:
- data_home: str or path, default=None
The directory where to download and unzip the files.
- Returns:
- bunchsklearn.utils.Bunch
A dictionary-like object with the following keys:
happiness_report
: dataframe, data from the world happiness reportGDP_per_capita
,life_expectancy
,legal_rights_index
: corresponding tables from the World Bank.
Gallery examples#
Fuzzy joining dirty tables with the Joiner
Fuzzy joining dirty tables with the Joiner