--- license: mit task_categories: - text-classification language: - en tags: - wellbeing - flourishing - llm - classification --- ### About the data These are partial results from [The Geography of Human Flourishing Project](https://i-guide.io/spatial-ai-challenge-2024/accepted-abstracts/) analysis for the years 2010-2023. This project is one of the 10 national projects awarded within the [Spatial AI-Challange 2024](https://i-guide.io/spatial-ai-challenge-2024/), an international initiative at the crossroads of geospatial science and artificial intelligence. At present only a subset of data for 2010-2012 are present. Data are in the form of CSV or parquet. In the datasets, FIPS is the FIPS code for a US state, county is the US county id, according to US Bureau of Census. This data contain 46 Human Flourishing dimensions plus migration mood and corruption perception. A reference paper will be uploaded. ## How to get the data with python ``` from datasets import load_dataset # Load the CSV df_csv = load_dataset("siacus/flourishing", data_files="flourishingStateYear.csv").to_pandas() # Load the Parquet df_parquet = load_dataset("siacus/flourishing", data_files="flourishingStateYear.parquet").to_pandas() ``` ## How to get the data with R There is no direct equivalent to ```datasets::load_dataset()``` from Hugging Face yet, so you can try this: ``` # Load the CSV library(data.table) df_csv <- fread("https://huggingface.co/datasets/siacus/flourishing/resolve/main/flourishingStateYear.csv") # Load the Parquet library(arrow) df_parquet <- read_parquet("https://huggingface.co/datasets/siacus/flourishing/resolve/main/flourishingStateYear.parquet") ``` This dataset contains also two shape files archives ```cb_2021_us_county_20m.zip``` taken from [here](https://www2.census.gov/geo/tiger/GENZ2021/shp/cb_2021_us_county_20m.zip) and ```cb_2021_us_state_20m.zip``` taken from [here](https://www2.census.gov/geo/tiger/GENZ2021/shp/cb_2021_us_state_20m.zip) which can be useful to visualize the maps in python. Unfortunately US Census Bureau web site is stopping download from bots/scripts, so we provide the files here. To get them from python use this code ``` import geopandas as gpd states = gpd.read_file("https://huggingface.co/datasets/siacus/flourishing/resolve/main/cb_2021_us_state_20m.zip") counties = gpd.read_file("https://huggingface.co/datasets/siacus/flourishing/resolve/main/cb_2021_us_county_20m.zip") ```