Datasets:
Disable HF viewer and add TsFile data-preview section (viewer: false)
Browse files
README.md
CHANGED
|
@@ -16,6 +16,7 @@ tags:
|
|
| 16 |
- tsfile
|
| 17 |
task_categories:
|
| 18 |
- time-series-forecasting
|
|
|
|
| 19 |
---
|
| 20 |
|
| 21 |
# SpatialEpiBench TsFile
|
|
@@ -26,6 +27,45 @@ This repository contains a TsFile conversion of the Hugging Face dataset
|
|
| 26 |
The description below separates information taken from the original dataset
|
| 27 |
card from the changes made during this TsFile conversion.
|
| 28 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
## Original Dataset Information
|
| 30 |
|
| 31 |
Original dataset: <https://huggingface.co/datasets/ruiqil/SpatialEpiBench>
|
|
|
|
| 16 |
- tsfile
|
| 17 |
task_categories:
|
| 18 |
- time-series-forecasting
|
| 19 |
+
viewer: false
|
| 20 |
---
|
| 21 |
|
| 22 |
# SpatialEpiBench TsFile
|
|
|
|
| 27 |
The description below separates information taken from the original dataset
|
| 28 |
card from the changes made during this TsFile conversion.
|
| 29 |
|
| 30 |
+
## ⚠️ About the Dataset Viewer
|
| 31 |
+
|
| 32 |
+
**The Hugging Face dataset viewer is disabled for this repository on purpose.**
|
| 33 |
+
|
| 34 |
+
The actual data lives in **11 `.tsfile` files** (Apache IoTDB TsFile, a binary
|
| 35 |
+
time-series format). The HF viewer does **not** support `.tsfile`, so it cannot
|
| 36 |
+
render the real data. The only files the viewer *could* auto-preview are the
|
| 37 |
+
sidecar `.csv` files (`adjacency/*_adj.csv`, `column_mapping.csv`,
|
| 38 |
+
`conversion_summary.csv`) — but those are **static graph/metadata tables, not
|
| 39 |
+
the time-series data**. Showing them would misrepresent this dataset as having
|
| 40 |
+
no timestamps, so the viewer is turned off (`viewer: false`).
|
| 41 |
+
|
| 42 |
+
Each `.tsfile` does contain a proper time axis. Below is a real preview read
|
| 43 |
+
back from `AUcase/AUcase.tsfile` (millisecond `Time` plus regional case counts;
|
| 44 |
+
only 4 of 8 regions shown for width):
|
| 45 |
+
|
| 46 |
+
| Time (epoch ms) | Time (UTC) | australian_capital_territory | new_south_wales | queensland | victoria |
|
| 47 |
+
|---:|---|---:|---:|---:|---:|
|
| 48 |
+
| 1585699200000 | 2020-04-01 | 4 | 150 | 38 | 51 |
|
| 49 |
+
| 1585785600000 | 2020-04-02 | 3 | 116 | 54 | 68 |
|
| 50 |
+
| 1585872000000 | 2020-04-03 | 4 | 91 | 38 | 49 |
|
| 51 |
+
| 1585958400000 | 2020-04-04 | 2 | 104 | 27 | 30 |
|
| 52 |
+
| 1586044800000 | 2020-04-05 | 3 | 87 | 7 | 20 |
|
| 53 |
+
|
| 54 |
+
To read a `.tsfile`, use the TsFile SDK (Python or Java):
|
| 55 |
+
|
| 56 |
+
```python
|
| 57 |
+
from tsfile import TsFileReader, ColumnCategory
|
| 58 |
+
|
| 59 |
+
reader = TsFileReader("AUcase/AUcase.tsfile")
|
| 60 |
+
schemas = reader.get_all_table_schemas()
|
| 61 |
+
table = next(iter(schemas)) # e.g. "aucase"
|
| 62 |
+
fields = [c.get_column_name() for c in schemas[table].get_columns()
|
| 63 |
+
if c.get_category() in (ColumnCategory.FIELD, ColumnCategory.TAG)]
|
| 64 |
+
with reader.query_table(table, fields, batch_size=65536) as rs:
|
| 65 |
+
batch = rs.read_arrow_batch() # Arrow batch; includes the `time` column
|
| 66 |
+
print(batch.to_pandas().head())
|
| 67 |
+
```
|
| 68 |
+
|
| 69 |
## Original Dataset Information
|
| 70 |
|
| 71 |
Original dataset: <https://huggingface.co/datasets/ruiqil/SpatialEpiBench>
|