Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,53 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
## Intro
|
2 |
+
The data organization follows TFB format: https://github.com/decisionintelligence/TFB.
|
3 |
+
|
4 |
+
## TFB data format
|
5 |
+
|
6 |
+
TFB stores time series in a format of three column long tables, which we will introduce below:
|
7 |
+
|
8 |
+
### Format Introduction
|
9 |
+
|
10 |
+
**First column: date** (the exact column name is required, the same applies below.)
|
11 |
+
|
12 |
+
- The columns stores the time information in the time series, which can be in either of the following formats:
|
13 |
+
- Timestamps in string, datetime, or other types that are compatible with pd.to_datetime;
|
14 |
+
- Integers starting from 1, e.g. 1, 2, 3, 4, 5, ...
|
15 |
+
|
16 |
+
|
17 |
+
**Second column: data**
|
18 |
+
|
19 |
+
- This column stores the series values corresponding to the timestamps.
|
20 |
+
|
21 |
+
**Third column: cols**
|
22 |
+
|
23 |
+
- This column stores the column name (variable name).
|
24 |
+
|
25 |
+
|
26 |
+
|
27 |
+
|
28 |
+
### Multivariate time series example:
|
29 |
+
|
30 |
+
**A common time series in wide table format:**
|
31 |
+
|
32 |
+
| date | channel1 | channel2 | channel3 |
|
33 |
+
| ---- | -------- | -------- | -------- |
|
34 |
+
| 1 | 0.1 | 1 | 10 |
|
35 |
+
| 2 | 0.2 | 2 | 20 |
|
36 |
+
| 3 | 0.3 | 3 | 30 |
|
37 |
+
|
38 |
+
**Convert to TFB format:**
|
39 |
+
|
40 |
+
| date | data | cols |
|
41 |
+
| ---- | ---- | -------- |
|
42 |
+
| 1 | 0.1 | channel1 |
|
43 |
+
| 2 | 0.2 | channel1 |
|
44 |
+
| 3 | 0.3 | channel1 |
|
45 |
+
| 1 | 1 | channel2 |
|
46 |
+
| 2 | 2 | channel2 |
|
47 |
+
| 3 | 3 | channel2 |
|
48 |
+
| 1 | 10 | channel3 |
|
49 |
+
| 2 | 20 | channel3 |
|
50 |
+
| 3 | 30 | channel3 |
|
51 |
+
|
52 |
+
## License
|
53 |
+
This dataset is released under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/deed.en)
|