Datasets:

fev_datasets / walmart /README.md
smilegeng's picture
chore: translate subset README and add format:tsfile tag
5d9be0b verified
|
Raw History Blame Contribute Delete
3.14 kB
metadata
license: other
task_categories:
  - time-series-forecasting
tags:
  - time-series
  - tsfile
  - format:tsfile
pretty_name: walmart (TsFile format)

walmart (TsFile format)

Source and Citation

This dataset was converted from external source data into a unified forecasting format and then into TsFile. Licensing and citation requirements follow the original source. We do not claim ownership of the original data. Unless otherwise stated, the data is intended for research use.

Dataset Statistics

Number of series Median length Observations Dynamic columns Static columns Files
2,936 143 4,609,143 11 4 walmart.tsfile

TsFile Storage Model

  • Each original series (id) is stored as one TsFile device (TAG dimension).
  • Static covariate columns are also stored as TAGs (device metadata): Store, Dept, Type, Size.
  • Time-varying targets and dynamic covariates are stored as measurements (FIELDs).
  • timestamp is mapped to Time as INT64 milliseconds.
  • Table name: walmart.

Column Schema

Column Role TsFile type
Time Time column INT64
id TAG (device dimension) STRING
Store TAG (device dimension) DOUBLE
Dept TAG (device dimension) DOUBLE
Type TAG (device dimension) STRING
Size TAG (device dimension) DOUBLE
target FIELD (measurement) FLOAT
IsHoliday FIELD (measurement) FLOAT
Temperature FIELD (measurement) FLOAT
Fuel_Price FIELD (measurement) FLOAT
MarkDown1 FIELD (measurement) FLOAT
MarkDown2 FIELD (measurement) FLOAT
MarkDown3 FIELD (measurement) FLOAT
MarkDown4 FIELD (measurement) FLOAT
MarkDown5 FIELD (measurement) FLOAT
CPI FIELD (measurement) FLOAT
Unemployment FIELD (measurement) FLOAT

Note: 2936 original id values contained invalid identifier characters and were normalized to valid device names, for example 10_1→_10_1, 10_10→_10_10, 10_11→_10_11.

Conversion Notes

  • Each original row stores one complete series (id, timestamp[], target and dynamic arrays). The converter flattens these nested rows into a long table before writing TsFile.
  • Numeric types are inferred from the source columns, for example float32 to FLOAT, float64 to DOUBLE, integers to INT64, and bool to BOOLEAN.
  • Time precision: milliseconds (INT64).
  • Large tables may be automatically sharded as <name>_1.tsfile, <name>_2.tsfile, and so on. These shards belong to the same logical table.

Reading Example

from tsfile import TsFileReader

reader = TsFileReader("walmart.tsfile")
schemas = reader.get_all_table_schemas()
# Table name: walmart; see \"Column Schema\" below.