File size: 6,198 Bytes
6de43c7
cf495bf
 
 
 
 
 
 
6de43c7
2616045
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
06c792d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2616045
6de43c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bbde085
6de43c7
bbde085
 
6de43c7
2616045
 
 
 
06c792d
 
 
 
6de43c7
 
 
 
cf495bf
 
 
 
 
 
 
6de43c7
cf495bf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
---
license: cc-by-4.0
pretty_name: HETUS Harmonized Time Use (Eurostat TSV + ESMS metadata)
task_categories:
- tabular-classification
- text-classification
language:
- en
dataset_info:
- config_name: files
  features:
  - name: wave
    dtype: string
  - name: dataset_id
    dtype: string
  - name: source_file
    dtype: string
  - name: metadata_file
    dtype: string
  - name: rows_wide
    dtype: string
  - name: rows_long
    dtype: string
  - name: rows_expected_long
    dtype: string
  - name: lossless_validated
    dtype: string
  - name: dimensions
    dtype: string
  - name: time_periods_raw
    dtype: string
  - name: time_periods
    dtype: string
  splits:
  - name: train
    num_bytes: 8186
    num_examples: 39
  download_size: 7294
  dataset_size: 8186
- config_name: metadata
  features:
  - name: wave
    dtype: string
  - name: metadata_file
    dtype: string
  - name: prepared_at
    dtype: string
  - name: metadata_set_id
    dtype: string
  - name: attribute_id
    dtype: string
  - name: attribute_path
    dtype: string
  - name: value_html
    dtype: string
  - name: value_text
    dtype: string
  splits:
  - name: train
    num_bytes: 94561
    num_examples: 150
  download_size: 34933
  dataset_size: 94561
- config_name: observations
  features:
  - name: dataset_id
    dtype: string
  - name: wave
    dtype: string
  - name: source_file
    dtype: string
  - name: metadata_file
    dtype: string
  - name: source_row_index
    dtype: string
  - name: source_key_raw
    dtype: string
  - name: dimension_order_raw
    dtype: string
  - name: dimension_order
    dtype: string
  - name: time_period_raw
    dtype: string
  - name: time_period
    dtype: string
  - name: time_period_year
    dtype: string
  - name: observation_cell_raw
    dtype: string
  - name: observation_raw
    dtype: string
  - name: observation
    dtype: string
  - name: observation_value
    dtype: string
  - name: duration_minutes
    dtype: string
  - name: status_flag
    dtype: string
  - name: is_missing
    dtype: string
  - name: acl00
    dtype: string
  - name: acl18
    dtype: string
  - name: age
    dtype: string
  - name: daysweek
    dtype: string
  - name: freq
    dtype: string
  - name: geo
    dtype: string
  - name: hhcomp
    dtype: string
  - name: hhstatus
    dtype: string
  - name: isced11
    dtype: string
  - name: isced97
    dtype: string
  - name: month
    dtype: string
  - name: sex
    dtype: string
  - name: startime
    dtype: string
  - name: tra_mode
    dtype: string
  - name: unit
    dtype: string
  - name: wstatus
    dtype: string
  splits:
  - name: train
    num_bytes: 636505250
    num_examples: 1680915
  download_size: 25062037
  dataset_size: 636505250
configs:
- config_name: files
  data_files:
  - split: train
    path: files/train-*
- config_name: metadata
  data_files:
  - split: train
    path: metadata/train-*
- config_name: observations
  data_files:
  - split: train
    path: observations/train-*
tags:
- sociology
- time-use
- europe
- EU
size_categories:
- 1M<n<10M
---

# Dataset Card: HETUS Time Use (Converted from Eurostat TSV)

## Dataset Summary

This dataset contains normalized tabular observations converted from Eurostat HETUS TSV files, plus flattened SDMX ESMS metadata.

The conversion is performed by `db-hf-normalization.py` and preserves raw TSV tokens to prevent information loss during normalization.

## Source Data

- Original source: Eurostat HETUS database exports (TSV + SDMX XML metadata)
- Local source folder: `hetus/`
- Waves currently included: `2000_2010`, `2020`

## Conversion Method

The converter:

1. Reads TSV files as tab-separated raw text (no NA auto-coercion).
2. Expands packed dimension keys from the first column.
3. Melts year/time columns into long format.
4. Preserves exact raw source tokens for auditability:
   - `source_key_raw`
   - `time_period_raw`
   - `observation_cell_raw`
5. Creates normalized fields for analysis:
   - `time_period`, `time_period_year`
   - `observation`, `observation_value`, `duration_minutes`, `status_flag`
6. Validates strict lossless mapping per file (1:1 source cell preservation).

## Splits

### `observations`

Long-format observations.

Core provenance fields:

- `dataset_id`
- `wave`
- `source_file`
- `metadata_file`
- `source_row_index`
- `source_key_raw`
- `time_period_raw`
- `observation_cell_raw`

Normalized fields:

- `time_period`
- `time_period_year`
- `observation_raw`
- `observation`
- `observation_value`
- `duration_minutes`
- `status_flag`
- `is_missing`

Dimension fields (vary by source table, unioned into one schema):

- Examples: `freq`, `unit`, `sex`, `age`, `geo`, `acl00`, `acl18`, ...

### `files`

Per-source-file conversion and validation report:

- `rows_wide`
- `rows_long`
- `rows_expected_long`
- `lossless_validated`
- dimensions/time-period summaries

### `metadata`

Flattened SDMX ESMS metadata attributes with:

- attribute id/path
- HTML value (`value_html`)
- plain-text value (`value_text`)

## Data Loss / Integrity Statement

For each TSV file, conversion enforces:

- Exact row cardinality: `rows_long == rows_wide * number_of_time_period_columns`
- Exact cell-level preservation of raw source tuples:
  `(source_row_index, source_key_raw, time_period_raw, observation_cell_raw)`

If any mismatch is detected, conversion fails for that file.

## Known Caveats

- The first TSV column stores packed dimensions separated by commas. The converter keeps both:
  - raw packed key (`source_key_raw`)
  - expanded normalized dimensions
- Whitespace around values may be normalized in analytical columns, but the raw fields remain preserved.

## Intended Uses

- Comparative time-use analysis across countries, years, demographic strata, and activity codes.
- Reproducible ETL pipelines where raw-source lineage is required.

## Out-of-Scope Uses

- Any individual-level inference (dataset is aggregate tabular statistics).

## Citation

Please cite Eurostat HETUS and include repository/version information for this converted dataset.

## Dataset Version

- Converter script: `db-hf-normalization.py`
- Conversion date: {{YYYY-MM-DD}}
- Repository commit: {{GIT_COMMIT_SHA}}