Update README.md
Browse files
README.md
CHANGED
|
@@ -1,4 +1,11 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
- config_name: files
|
| 4 |
features:
|
|
@@ -144,4 +151,127 @@ configs:
|
|
| 144 |
- split: train
|
| 145 |
path: observations/train-*
|
| 146 |
default: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
pretty_name: HETUS Harmonized Time Use (Eurostat TSV + ESMS metadata)
|
| 4 |
+
task_categories:
|
| 5 |
+
- tabular-classification
|
| 6 |
+
- text-classification
|
| 7 |
+
language:
|
| 8 |
+
- en
|
| 9 |
dataset_info:
|
| 10 |
- config_name: files
|
| 11 |
features:
|
|
|
|
| 151 |
- split: train
|
| 152 |
path: observations/train-*
|
| 153 |
default: true
|
| 154 |
+
tags:
|
| 155 |
+
- sociology
|
| 156 |
+
- time-use
|
| 157 |
+
- europe
|
| 158 |
+
- EU
|
| 159 |
+
size_categories:
|
| 160 |
+
- 1M<n<10M
|
| 161 |
---
|
| 162 |
+
|
| 163 |
+
# Dataset Card: HETUS Time Use (Converted from Eurostat TSV)
|
| 164 |
+
|
| 165 |
+
## Dataset Summary
|
| 166 |
+
|
| 167 |
+
This dataset contains normalized tabular observations converted from Eurostat HETUS TSV files, plus flattened SDMX ESMS metadata.
|
| 168 |
+
|
| 169 |
+
The conversion is performed by `db-hf-normalization.py` and preserves raw TSV tokens to prevent information loss during normalization.
|
| 170 |
+
|
| 171 |
+
## Source Data
|
| 172 |
+
|
| 173 |
+
- Original source: Eurostat HETUS database exports (TSV + SDMX XML metadata)
|
| 174 |
+
- Local source folder: `hetus/`
|
| 175 |
+
- Waves currently included: `2000_2010`, `2020`
|
| 176 |
+
|
| 177 |
+
## Conversion Method
|
| 178 |
+
|
| 179 |
+
The converter:
|
| 180 |
+
|
| 181 |
+
1. Reads TSV files as tab-separated raw text (no NA auto-coercion).
|
| 182 |
+
2. Expands packed dimension keys from the first column.
|
| 183 |
+
3. Melts year/time columns into long format.
|
| 184 |
+
4. Preserves exact raw source tokens for auditability:
|
| 185 |
+
- `source_key_raw`
|
| 186 |
+
- `time_period_raw`
|
| 187 |
+
- `observation_cell_raw`
|
| 188 |
+
5. Creates normalized fields for analysis:
|
| 189 |
+
- `time_period`, `time_period_year`
|
| 190 |
+
- `observation`, `observation_value`, `duration_minutes`, `status_flag`
|
| 191 |
+
6. Validates strict lossless mapping per file (1:1 source cell preservation).
|
| 192 |
+
|
| 193 |
+
## Splits
|
| 194 |
+
|
| 195 |
+
### `observations`
|
| 196 |
+
|
| 197 |
+
Long-format observations.
|
| 198 |
+
|
| 199 |
+
Core provenance fields:
|
| 200 |
+
|
| 201 |
+
- `dataset_id`
|
| 202 |
+
- `wave`
|
| 203 |
+
- `source_file`
|
| 204 |
+
- `metadata_file`
|
| 205 |
+
- `source_row_index`
|
| 206 |
+
- `source_key_raw`
|
| 207 |
+
- `time_period_raw`
|
| 208 |
+
- `observation_cell_raw`
|
| 209 |
+
|
| 210 |
+
Normalized fields:
|
| 211 |
+
|
| 212 |
+
- `time_period`
|
| 213 |
+
- `time_period_year`
|
| 214 |
+
- `observation_raw`
|
| 215 |
+
- `observation`
|
| 216 |
+
- `observation_value`
|
| 217 |
+
- `duration_minutes`
|
| 218 |
+
- `status_flag`
|
| 219 |
+
- `is_missing`
|
| 220 |
+
|
| 221 |
+
Dimension fields (vary by source table, unioned into one schema):
|
| 222 |
+
|
| 223 |
+
- Examples: `freq`, `unit`, `sex`, `age`, `geo`, `acl00`, `acl18`, ...
|
| 224 |
+
|
| 225 |
+
### `files`
|
| 226 |
+
|
| 227 |
+
Per-source-file conversion and validation report:
|
| 228 |
+
|
| 229 |
+
- `rows_wide`
|
| 230 |
+
- `rows_long`
|
| 231 |
+
- `rows_expected_long`
|
| 232 |
+
- `lossless_validated`
|
| 233 |
+
- dimensions/time-period summaries
|
| 234 |
+
|
| 235 |
+
### `metadata`
|
| 236 |
+
|
| 237 |
+
Flattened SDMX ESMS metadata attributes with:
|
| 238 |
+
|
| 239 |
+
- attribute id/path
|
| 240 |
+
- HTML value (`value_html`)
|
| 241 |
+
- plain-text value (`value_text`)
|
| 242 |
+
|
| 243 |
+
## Data Loss / Integrity Statement
|
| 244 |
+
|
| 245 |
+
For each TSV file, conversion enforces:
|
| 246 |
+
|
| 247 |
+
- Exact row cardinality: `rows_long == rows_wide * number_of_time_period_columns`
|
| 248 |
+
- Exact cell-level preservation of raw source tuples:
|
| 249 |
+
`(source_row_index, source_key_raw, time_period_raw, observation_cell_raw)`
|
| 250 |
+
|
| 251 |
+
If any mismatch is detected, conversion fails for that file.
|
| 252 |
+
|
| 253 |
+
## Known Caveats
|
| 254 |
+
|
| 255 |
+
- The first TSV column stores packed dimensions separated by commas. The converter keeps both:
|
| 256 |
+
- raw packed key (`source_key_raw`)
|
| 257 |
+
- expanded normalized dimensions
|
| 258 |
+
- Whitespace around values may be normalized in analytical columns, but the raw fields remain preserved.
|
| 259 |
+
|
| 260 |
+
## Intended Uses
|
| 261 |
+
|
| 262 |
+
- Comparative time-use analysis across countries, years, demographic strata, and activity codes.
|
| 263 |
+
- Reproducible ETL pipelines where raw-source lineage is required.
|
| 264 |
+
|
| 265 |
+
## Out-of-Scope Uses
|
| 266 |
+
|
| 267 |
+
- Any individual-level inference (dataset is aggregate tabular statistics).
|
| 268 |
+
|
| 269 |
+
## Citation
|
| 270 |
+
|
| 271 |
+
Please cite Eurostat HETUS and include repository/version information for this converted dataset.
|
| 272 |
+
|
| 273 |
+
## Dataset Version
|
| 274 |
+
|
| 275 |
+
- Converter script: `db-hf-normalization.py`
|
| 276 |
+
- Conversion date: {{YYYY-MM-DD}}
|
| 277 |
+
- Repository commit: {{GIT_COMMIT_SHA}}
|