Datasets:
Copy from wangdx25/currydata
Browse files- README.md +88 -0
- currydata.tsfile +0 -0
README.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
task_categories:
|
| 3 |
+
- time-series-forecasting
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
tags:
|
| 7 |
+
- tsfile
|
| 8 |
+
- timeseries
|
| 9 |
+
- time-series
|
| 10 |
+
- NBA
|
| 11 |
+
- format:tsfile
|
| 12 |
+
pretty_name: currydata (TsFile)
|
| 13 |
+
configs:
|
| 14 |
+
- config_name: default
|
| 15 |
+
data_files:
|
| 16 |
+
- split: train
|
| 17 |
+
path: currydata.tsfile
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# currydata (TsFile)
|
| 21 |
+
|
| 22 |
+
Apache TsFile version of [`jawwaadsabree/CurryData`](https://huggingface.co/datasets/jawwaadsabree/CurryData).
|
| 23 |
+
|
| 24 |
+
## Overview
|
| 25 |
+
|
| 26 |
+
This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1).
|
| 27 |
+
|
| 28 |
+
- **Tables:** 1 TsFile table(s), 1,205 rows in total.
|
| 29 |
+
- `currydata`: 1,205 rows, 2009-10-28 00:00:00 鈫?2025-04-15 00:00:00 (UTC)
|
| 30 |
+
|
| 31 |
+
## Schema (TsFile structure)
|
| 32 |
+
|
| 33 |
+
### `currydata.tsfile`
|
| 34 |
+
|
| 35 |
+
- **Time** (INT64, milliseconds) 鈥?the source `Date` column.
|
| 36 |
+
- **TAG**: none 鈥?the table is stored as a single device.
|
| 37 |
+
- **FIELD** (58): `Result` (int64), `MIN` (int64), `REB` (int64), `AST` (int64), `BLK` (int64), `STL` (int64), `PF` (int64), `TO` (int64), `PTS` (int64), `FG_Made` (int64), `FG_Attempts` (int64), `c_3PT_Made` (int64), `c_3PT_Attempts` (int64), `FT_Made` (int64), `FT_Attempts` (int64), `Opponent_1` (int64), `Opponent_2` (int64), `Opponent_3` (int64), `Opponent_4` (int64), `Opponent_5` (int64), `Opponent_6` (int64), `Opponent_7` (int64), `Opponent_8` (int64), `Opponent_9` (int64), `Opponent_10` (int64), `Opponent_11` (int64), `Opponent_12` (int64), `Opponent_13` (int64), `Opponent_14` (int64), `Opponent_15` (int64), `Opponent_16` (int64), `Opponent_17` (int64), `Opponent_18` (int64), `Opponent_19` (int64), `Opponent_20` (int64), `Opponent_21` (int64), `Opponent_22` (int64), `Opponent_23` (int64), `Opponent_24` (int64), `Opponent_25` (int64), `Opponent_26` (int64), `Opponent_27` (int64), `Opponent_28` (int64), `Opponent_29` (int64), `Opponent_30` (int64), `Is_Home` (int64), `Year` (int64), `Month_Sin` (double), `Month_Cos` (double), `Day_Sin` (double), `Day_Cos` (double), `Day_of_Week_Sin` (double), `Day_of_Week_Cos` (double), `Day_of_Year_Sin` (double), `Day_of_Year_Cos` (double), `Is_Playoff` (int64), `Is_Regular_Season` (int64), `Is_Preseason` (int64)
|
| 38 |
+
|
| 39 |
+
## Conversion notes
|
| 40 |
+
|
| 41 |
+
- One TsFile per source table (1 tables). Tables whose source carries several entities per file are stored as one device per entity.
|
| 42 |
+
- Time = the table's own clock column as INT64 milliseconds. The clock columns used here are `Date`.
|
| 43 |
+
- No column is dropped. Rows that share a timestamp inside one device are ordered by a 1 ms step in stable source order, so calendar columns keep their exact day.
|
| 44 |
+
|
| 45 |
+
## Usage
|
| 46 |
+
|
| 47 |
+
> **Read this dataset with the Java SDK.** It is written with the `zstd` compressor. The Apache TsFile Java SDK reads every compressor, but the Python SDK (`pip install tsfile`) implements only `UNCOMPRESSED`, `SNAPPY`, `GZIP` and `LZ4`; opening this file with it yields no rows.
|
| 48 |
+
|
| 49 |
+
Read a converted file with the Apache TsFile Java SDK (`org.apache.tsfile:tsfile`):
|
| 50 |
+
|
| 51 |
+
```java
|
| 52 |
+
import org.apache.tsfile.file.metadata.IDeviceID;
|
| 53 |
+
import org.apache.tsfile.read.TsFileReader;
|
| 54 |
+
import org.apache.tsfile.read.TsFileSequenceReader;
|
| 55 |
+
import org.apache.tsfile.read.common.Path;
|
| 56 |
+
import org.apache.tsfile.read.expression.QueryExpression;
|
| 57 |
+
import org.apache.tsfile.read.query.dataset.QueryDataSet;
|
| 58 |
+
import org.apache.tsfile.write.schema.MeasurementSchema;
|
| 59 |
+
|
| 60 |
+
import java.util.ArrayList;
|
| 61 |
+
import java.util.List;
|
| 62 |
+
|
| 63 |
+
String path = "currydata.tsfile";
|
| 64 |
+
try (TsFileSequenceReader sequenceReader = new TsFileSequenceReader(path);
|
| 65 |
+
TsFileReader reader = new TsFileReader(sequenceReader)) {
|
| 66 |
+
// Devices are enumerated as IDeviceID objects. Tables with TAG columns
|
| 67 |
+
// have multi-segment device ids that cannot be rebuilt from their string
|
| 68 |
+
// form, so always use getAllDevices() rather than getAllDeviceIds().
|
| 69 |
+
for (IDeviceID device : sequenceReader.getAllDevices()) {
|
| 70 |
+
List<Path> paths = new ArrayList<>();
|
| 71 |
+
for (MeasurementSchema schema : reader.getMeasurement(device)) {
|
| 72 |
+
String name = schema.getMeasurementName();
|
| 73 |
+
if (name != null && !name.isEmpty() && !name.equalsIgnoreCase("Time")) {
|
| 74 |
+
paths.add(new Path(device, name, true));
|
| 75 |
+
}
|
| 76 |
+
}
|
| 77 |
+
QueryDataSet dataSet = reader.query(QueryExpression.create(paths, null));
|
| 78 |
+
while (dataSet.hasNext()) {
|
| 79 |
+
System.out.println(dataSet.next());
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
## Source & license
|
| 86 |
+
|
| 87 |
+
- Original dataset: [`jawwaadsabree/CurryData`](https://huggingface.co/datasets/jawwaadsabree/CurryData)
|
| 88 |
+
- License: not declared (as declared by the original dataset).
|
currydata.tsfile
ADDED
|
Binary file (54.5 kB). View file
|
|
|