CoolFace
Datasetpublic

THULab/world_life_expectancy

world_life_expectancy (TsFile format) This repository contains time-series forecasting data stored in Apache TsFile format. Summary FEV subset: world_life_expectancy Unified source collection: autogluon/fev_datasets Original source: https://www.kaggle.com/datasets/nafayunnoor/global-life-expectancy-data-1950-2023 Paper / citation: [25] Series: 237 Modalities: Time-series TsFile rows (flattened observations): 17,538 Frequencies: source-defined TsFile files: 1 Time… See the full description on the dataset page: https://huggingface.co/datasets/THULab/world_life_expectancy.

sourceHugging Faceotherupdated 1mo agoView on Hugging Face
0likes32downloads
Dataset Card

worldlifeexpectancy (TsFile format)

This repository contains time-series forecasting data stored in Apache TsFile format.

Summary

  • —FEV subset: world_life_expectancy
  • —Unified source collection: `autogluon/fev_datasets`
  • —Original source: https://www.kaggle.com/datasets/nafayunnoor/global-life-expectancy-data-1950-2023
  • —Paper / citation: [[25]](https://ourworldindata.org/life-expectancy#article-citation)
  • —Series: 237
  • —Modalities: Time-series
  • —TsFile rows (flattened observations): 17,538
  • —Frequencies: source-defined
  • —TsFile files: 1
  • —Time precision: milliseconds (INT64).

Licensing and citation requirements follow the original source. This repository does not claim ownership of the original data.

Dataset Statistics

SeriesMedian series lengthTsFile rows (observations)Dynamic columnsStatic columnsData files
2377417,53810world_life_expectancy.tsfile

Files

The Hugging Face dataset card YAML points configs.data_files to all *.tsfile files in this repository.

  • —world_life_expectancy.tsfile

TsFile Storage Model

  • —Each original series (id) is stored as one TsFile device.
  • —Time-varying targets and dynamic covariates are stored as FIELD measurements.
  • —Source timestamp values are mapped to the TsFile Time column as millisecond timestamps.
  • —Table name(s): worldlifeexpectancy.

Column Schema

ColumnRoleTsFile type
TimeTime columnINT64
idTAG (device dimension)STRING
targetFIELD (measurement)FLOAT
Note: 58 original id values contained invalid identifier characters and were normalized to valid device names, for example American Samoa→AmericanSamoa, Antigua and Barbuda→AntiguaandBarbuda, Bonaire Sint Eustatius and Saba→BonaireSintEustatiusand_Saba.

Conversion Notes

  • —The source FEV format stores each time series as one nested row containing id, timestamp[], and target or covariate arrays.
  • —The TsFile conversion flattens those nested arrays into long rows. Therefore, the TsFile rows values above correspond to the number of timestamped observations after flattening.
  • —TAG columns identify the device and static metadata. FIELD columns contain values that change over time.
  • —Large logical tables may be split into multiple .tsfile shards such as <name>_1.tsfile, <name>_2.tsfile, and so on. Shards listed for the same frequency belong to the same logical table.

Reading Example

python
from tsfile import TsFileReader

reader = TsFileReader("world_life_expectancy.tsfile")
schemas = reader.get_all_table_schemas()
# Table name(s): world_life_expectancy