wangdx25 commited on
Commit
3f9ff79
·
verified ·
1 Parent(s): c5955c8

Add TsFile (converted from diamond-in/github-top-developers)

Browse files
Files changed (3) hide show
  1. .gitattributes +1 -0
  2. README.md +59 -0
  3. github_top_developers.tsfile +3 -0
.gitattributes CHANGED
@@ -58,3 +58,4 @@ 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
+ github_top_developers.tsfile filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ task_categories:
4
+ - time-series-forecasting
5
+ tags:
6
+ - tsfile
7
+ - timeseries
8
+ - time-series
9
+ - format:tsfile
10
+ pretty_name: github_top_developers
11
+ size_categories:
12
+ - 10K<n<100K
13
+ ---
14
+
15
+ # github_top_developers (TsFile)
16
+
17
+ Apache TsFile version of [`diamond-in/github-top-developers`](https://huggingface.co/datasets/diamond-in/github-top-developers).
18
+
19
+ - **Records:** 39,390
20
+
21
+ ## Schema (TsFile structure)
22
+
23
+ - **name** (TAG) — device dimension(s).
24
+ - **name** (FIELD).
25
+ - **rank** (FIELD).
26
+
27
+ ## Usage
28
+
29
+ Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
30
+
31
+ ```python
32
+ from pathlib import Path
33
+ from tsfile import TsFileReader
34
+
35
+ path = Path("github_top_developers.tsfile")
36
+ with TsFileReader(str(path)) as reader:
37
+ schemas = reader.get_all_table_schemas()
38
+ print("tables:", list(schemas))
39
+ table_name = next(iter(schemas))
40
+ table = schemas[table_name]
41
+ columns = [column.get_column_name() for column in table.get_columns()]
42
+ print("columns:", columns)
43
+ field_names = [
44
+ column.get_column_name()
45
+ for column in table.get_columns()
46
+ if column.get_column_name() not in {"Time", "time"}
47
+ ]
48
+ if field_names:
49
+ with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
50
+ batch = result.read_arrow_batch()
51
+ if batch is not None:
52
+ print(batch.to_pandas().head())
53
+ ```
54
+
55
+ ## Source & license
56
+
57
+ - Original dataset: https://huggingface.co/datasets/diamond-in/github-top-developers
58
+ - Author / publisher: diamond-in
59
+ - License: mit
github_top_developers.tsfile ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d041da0108fa54c854ce82738f36740d0fa2b25213d9be08d2ad7a35ef4e71c4
3
+ size 1393008