smilegeng commited on
Commit
f91e427
·
verified ·
1 Parent(s): 3573c07

Add TsFile (converted from jettisonthenet/timeseries_trending_youtube_videos_2019-04-15_to_2020-04-15)

Browse files
.gitattributes CHANGED
@@ -58,3 +58,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
 
 
 
58
  # Video files - compressed
59
  *.mp4 filter=lfs diff=lfs merge=lfs -text
60
  *.webm filter=lfs diff=lfs merge=lfs -text
61
+ youtube_trending_2019_2020_1.tsfile filter=lfs diff=lfs merge=lfs -text
62
+ youtube_trending_2019_2020_2.tsfile filter=lfs diff=lfs merge=lfs -text
README.md CHANGED
@@ -1,3 +1,73 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # youtube_trending_2019_2020
2
+
3
+ This repository contains a TsFile conversion of the Hugging Face dataset
4
+ [`jettisonthenet/timeseries_trending_youtube_videos_2019-04-15_to_2020-04-15`](https://huggingface.co/datasets/jettisonthenet/timeseries_trending_youtube_videos_2019-04-15_to_2020-04-15).
5
+
6
+ The source dataset card / Viewer identifies the dataset as a YouTube trending
7
+ video time-series dataset. The source repository contains `videostats.csv` and
8
+ the Hugging Face Viewer exposes the `default/train` split with about 1.54M rows.
9
+ The locally downloaded source file used for this conversion contains 1,541,128
10
+ rows.
11
+
12
+ ## Original Dataset
13
+
14
+ - Original dataset: <https://huggingface.co/datasets/jettisonthenet/timeseries_trending_youtube_videos_2019-04-15_to_2020-04-15>
15
+ - Source file used for conversion: `videostats.csv`
16
+ - Split used: `train`
17
+ - Local downloaded rows: 1,541,128
18
+ - Distinct `ytvideoid` values in the downloaded file: 11,369
19
+ - Time range in the downloaded file: `2019-04-15 04:42:49` to `2020-04-14 23:31:06`
20
+
21
+ The original columns are:
22
+
23
+ | Column | Description used in this conversion |
24
+ |---|---|
25
+ | `videostatsid` | Source row/statistics identifier |
26
+ | `ytvideoid` | YouTube video identifier |
27
+ | `views` | View count |
28
+ | `comments` | Comment count |
29
+ | `likes` | Like count |
30
+ | `dislikes` | Dislike count |
31
+ | `timestamp` | Source timestamp |
32
+
33
+ The source dataset does not contain video files, frames, audio, thumbnails, or
34
+ other media binaries. `ytvideoid` is an identifier only.
35
+
36
+ ## TsFile Conversion
37
+
38
+ The conversion was performed from the source CSV into staged Parquet and then
39
+ into TsFile using the repository workflow.
40
+
41
+ Generated files:
42
+
43
+ - `youtube_trending_2019_2020_1.tsfile`
44
+ - `youtube_trending_2019_2020_2.tsfile`
45
+
46
+ Schema-level conversion choices:
47
+
48
+ - `timestamp` was parsed into the TsFile `Time` column at millisecond precision.
49
+ - The original timestamp value was preserved as `source_timestamp_ms`.
50
+ - `ytvideoid` was declared as a TAG, so each YouTube video ID is represented as
51
+ a separate device series.
52
+ - `views`, `comments`, `likes`, and `dislikes` were retained as `INT64` fields.
53
+ - `videostatsid` was retained as an `INT64` field for traceability.
54
+ - No original source columns were dropped.
55
+
56
+ Duplicate timestamp handling:
57
+
58
+ The source CSV contains 89 duplicate `(ytvideoid, timestamp)` pairs. TsFile
59
+ requires timestamps within one device series to be unique/ordered for reliable
60
+ import. For those duplicate pairs only, the converted `Time` value was
61
+ disambiguated by adding a zero-based millisecond offset ordered by
62
+ `videostatsid`. The unadjusted source timestamp remains available in
63
+ `source_timestamp_ms`.
64
+
65
+ ## Validation
66
+
67
+ The staged Parquet file contains:
68
+
69
+ - 1,541,128 rows
70
+ - 11,369 distinct `ytvideoid` tag values
71
+ - 0 duplicate `(ytvideoid, Time)` pairs after conversion
72
+
73
+ Both generated `.tsfile` files were validated locally as present and non-empty.
youtube_trending_2019_2020_1.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d8b01f42b8e35a3e7fc7af11d36f5268a329ce74fd100a25283da32da68ca50
3
+ size 59420875
youtube_trending_2019_2020_2.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8c4d2d4d9012f6b0afb0037f68af4dae3c9ef81d6764f2936c1446b6619e3269
3
+ size 27901247