Datasets:
Add TsFile (converted from jwlutz/knowable)
Browse files- .gitattributes +19 -0
- README.md +115 -0
- congress_trades_2.tsfile +3 -0
- congress_trades_3.tsfile +3 -0
- congress_trades_4.tsfile +3 -0
- congress_trades_5.tsfile +3 -0
- congress_trades_6.tsfile +3 -0
- congress_trades_7.tsfile +3 -0
- congress_trades_8.tsfile +3 -0
- house_filings_1.tsfile +3 -0
- house_filings_2.tsfile +3 -0
- house_filings_4.tsfile +3 -0
- house_filings_5.tsfile +3 -0
- house_filings_6.tsfile +3 -0
- house_filings_8.tsfile +3 -0
- house_filings_9.tsfile +0 -0
- insider_transactions_2.tsfile +3 -0
- insider_transactions_3.tsfile +3 -0
- insider_transactions_5.tsfile +3 -0
- insider_transactions_6.tsfile +3 -0
- insider_transactions_7.tsfile +3 -0
- insider_transactions_8.tsfile +3 -0
- insider_transactions_9.tsfile +0 -0
- senate_filings_1.tsfile +0 -0
- senate_filings_2.tsfile +0 -0
- senate_filings_3.tsfile +0 -0
- senate_filings_4.tsfile +0 -0
- senate_filings_5.tsfile +0 -0
- senate_filings_6.tsfile +0 -0
- senate_filings_7.tsfile +0 -0
- senate_filings_8.tsfile +0 -0
- senate_filings_9.tsfile +0 -0
.gitattributes
CHANGED
|
@@ -58,3 +58,22 @@ 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 |
+
congress_trades_2.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
congress_trades_3.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
congress_trades_4.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
congress_trades_5.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
congress_trades_6.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
congress_trades_7.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
congress_trades_8.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
house_filings_1.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
house_filings_2.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
house_filings_4.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 71 |
+
house_filings_5.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 72 |
+
house_filings_6.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 73 |
+
house_filings_8.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 74 |
+
insider_transactions_2.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 75 |
+
insider_transactions_3.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 76 |
+
insider_transactions_5.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 77 |
+
insider_transactions_6.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 78 |
+
insider_transactions_7.tsfile filter=lfs diff=lfs merge=lfs -text
|
| 79 |
+
insider_transactions_8.tsfile filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- tsfile
|
| 4 |
+
- timeseries
|
| 5 |
+
- format:tsfile
|
| 6 |
+
- time-series
|
| 7 |
+
configs:
|
| 8 |
+
- config_name: default
|
| 9 |
+
data_files:
|
| 10 |
+
- split: train
|
| 11 |
+
path: congress_trades_2.tsfile
|
| 12 |
+
- split: train
|
| 13 |
+
path: congress_trades_3.tsfile
|
| 14 |
+
- split: train
|
| 15 |
+
path: congress_trades_4.tsfile
|
| 16 |
+
- split: train
|
| 17 |
+
path: congress_trades_5.tsfile
|
| 18 |
+
- split: train
|
| 19 |
+
path: congress_trades_6.tsfile
|
| 20 |
+
- split: train
|
| 21 |
+
path: congress_trades_7.tsfile
|
| 22 |
+
- split: train
|
| 23 |
+
path: congress_trades_8.tsfile
|
| 24 |
+
- split: train
|
| 25 |
+
path: house_filings_1.tsfile
|
| 26 |
+
- split: train
|
| 27 |
+
path: house_filings_2.tsfile
|
| 28 |
+
- split: train
|
| 29 |
+
path: house_filings_4.tsfile
|
| 30 |
+
- split: train
|
| 31 |
+
path: house_filings_5.tsfile
|
| 32 |
+
- split: train
|
| 33 |
+
path: house_filings_6.tsfile
|
| 34 |
+
- split: train
|
| 35 |
+
path: house_filings_8.tsfile
|
| 36 |
+
- split: train
|
| 37 |
+
path: house_filings_9.tsfile
|
| 38 |
+
- split: train
|
| 39 |
+
path: insider_transactions_2.tsfile
|
| 40 |
+
- split: train
|
| 41 |
+
path: insider_transactions_3.tsfile
|
| 42 |
+
- split: train
|
| 43 |
+
path: insider_transactions_5.tsfile
|
| 44 |
+
- split: train
|
| 45 |
+
path: insider_transactions_6.tsfile
|
| 46 |
+
- split: train
|
| 47 |
+
path: insider_transactions_7.tsfile
|
| 48 |
+
- split: train
|
| 49 |
+
path: insider_transactions_8.tsfile
|
| 50 |
+
- split: train
|
| 51 |
+
path: insider_transactions_9.tsfile
|
| 52 |
+
- split: train
|
| 53 |
+
path: senate_filings_1.tsfile
|
| 54 |
+
- split: train
|
| 55 |
+
path: senate_filings_2.tsfile
|
| 56 |
+
- split: train
|
| 57 |
+
path: senate_filings_3.tsfile
|
| 58 |
+
- split: train
|
| 59 |
+
path: senate_filings_4.tsfile
|
| 60 |
+
- split: train
|
| 61 |
+
path: senate_filings_5.tsfile
|
| 62 |
+
- split: train
|
| 63 |
+
path: senate_filings_6.tsfile
|
| 64 |
+
- split: train
|
| 65 |
+
path: senate_filings_7.tsfile
|
| 66 |
+
- split: train
|
| 67 |
+
path: senate_filings_8.tsfile
|
| 68 |
+
- split: train
|
| 69 |
+
path: senate_filings_9.tsfile
|
| 70 |
+
---
|
| 71 |
+
|
| 72 |
+
# knowable
|
| 73 |
+
|
| 74 |
+
Converted from the Hugging Face dataset [`jwlutz/knowable`](https://huggingface.co/datasets/jwlutz/knowable) to Apache TsFile format.
|
| 75 |
+
|
| 76 |
+
## Source Dataset
|
| 77 |
+
|
| 78 |
+
- **Original dataset:** [`jwlutz/knowable`](https://huggingface.co/datasets/jwlutz/knowable)
|
| 79 |
+
- **Authors:** jwlutz
|
| 80 |
+
|
| 81 |
+
## Conversion Notes
|
| 82 |
+
|
| 83 |
+
- Conversion mode: `script`
|
| 84 |
+
- Time precision: `ms`
|
| 85 |
+
- TsFile data files: `['congress_trades_2.tsfile', 'congress_trades_3.tsfile', 'congress_trades_4.tsfile', 'congress_trades_5.tsfile', 'congress_trades_6.tsfile', 'congress_trades_7.tsfile', 'congress_trades_8.tsfile', 'house_filings_1.tsfile', 'house_filings_2.tsfile', 'house_filings_4.tsfile', 'house_filings_5.tsfile', 'house_filings_6.tsfile', 'house_filings_8.tsfile', 'house_filings_9.tsfile', 'insider_transactions_2.tsfile', 'insider_transactions_3.tsfile', 'insider_transactions_5.tsfile', 'insider_transactions_6.tsfile', 'insider_transactions_7.tsfile', 'insider_transactions_8.tsfile', 'insider_transactions_9.tsfile', 'senate_filings_1.tsfile', 'senate_filings_2.tsfile', 'senate_filings_3.tsfile', 'senate_filings_4.tsfile', 'senate_filings_5.tsfile', 'senate_filings_6.tsfile', 'senate_filings_7.tsfile', 'senate_filings_8.tsfile', 'senate_filings_9.tsfile']`
|
| 86 |
+
- Converter: `scripts/converters/multi_table_scalar.py`
|
| 87 |
+
|
| 88 |
+
## Usage
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
Install the Apache TsFile Python SDK (`pip install tsfile`) and read a converted file:
|
| 92 |
+
|
| 93 |
+
```python
|
| 94 |
+
from pathlib import Path
|
| 95 |
+
from tsfile import TsFileReader
|
| 96 |
+
|
| 97 |
+
path = Path("congress_trades_2.tsfile")
|
| 98 |
+
with TsFileReader(str(path)) as reader:
|
| 99 |
+
schemas = reader.get_all_table_schemas()
|
| 100 |
+
print("tables:", list(schemas))
|
| 101 |
+
table_name = next(iter(schemas))
|
| 102 |
+
table = schemas[table_name]
|
| 103 |
+
columns = [column.get_column_name() for column in table.get_columns()]
|
| 104 |
+
print("columns:", columns)
|
| 105 |
+
field_names = [
|
| 106 |
+
column.get_column_name()
|
| 107 |
+
for column in table.get_columns()
|
| 108 |
+
if column.get_column_name() not in {"Time", "time"}
|
| 109 |
+
]
|
| 110 |
+
if field_names:
|
| 111 |
+
with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
|
| 112 |
+
batch = result.read_arrow_batch()
|
| 113 |
+
if batch is not None:
|
| 114 |
+
print(batch.to_pandas().head())
|
| 115 |
+
```
|
congress_trades_2.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c12f299db5089cc0a3c7fac02d276e1cf5f578f8b935e93a10b636456d6e1cb3
|
| 3 |
+
size 683396
|
congress_trades_3.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1dd33fcb357201341a2ec5011e9eff1ec300dbb746ca414673ac02605ccccc70
|
| 3 |
+
size 667143
|
congress_trades_4.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3d553314fcc69b7c0f0dc525df66f3e46aad75bbe5f893f5d9569fd3643a73c1
|
| 3 |
+
size 674557
|
congress_trades_5.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:63cefbde45066a379f0a519431a93eb4e61a39968978f616b821bf4691251383
|
| 3 |
+
size 710519
|
congress_trades_6.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4fc4579b47c196156cf6b87ff86bb7cc2db8423449a95f6521c5282e17262583
|
| 3 |
+
size 674371
|
congress_trades_7.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4d0f135e3d12fed41823cf4862a997641a2829bc113d32865d800a9bf13093e5
|
| 3 |
+
size 603871
|
congress_trades_8.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:09fd5cff2812eba9c35687ef43253ef68eac6dd0d31b0aafd68331e317952eb8
|
| 3 |
+
size 1058003
|
house_filings_1.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fbdd074c65ef069fc247d6407994fb0522ccfd031b5ad2bdfa4d5627d514e32
|
| 3 |
+
size 278464
|
house_filings_2.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:66749f56a5f54d0e336f2aae91416ba05c0e962994c4485182107f494179b00f
|
| 3 |
+
size 266880
|
house_filings_4.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:27ef1a81385462a8869c98accc6fd28ed10ab8c1b071e798d3fdb091855138e6
|
| 3 |
+
size 252874
|
house_filings_5.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:49ae41f2e0cdf28d32052d1c5611b81e5f774dacbfe04449daafd8490d477dd2
|
| 3 |
+
size 245231
|
house_filings_6.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf3b544c7ffba42dcf50d67747fb916855a18153e6c94d59fe231a124e546d8c
|
| 3 |
+
size 225858
|
house_filings_8.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3587eedd31caa5ec3de2f8d760e4db6c3652c6a07b663e326c0c30c61d9bb9d4
|
| 3 |
+
size 229525
|
house_filings_9.tsfile
ADDED
|
Binary file (3.45 kB). View file
|
|
|
insider_transactions_2.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:43a271b10ab7f7a734b61169c135c1c3d4b71bc93c488e69ffaf5efc47bdc7c8
|
| 3 |
+
size 31130227
|
insider_transactions_3.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf041fec85867ea6c2198ea8980590c6e6e94246c3afb253da13a6c024a33722
|
| 3 |
+
size 29298218
|
insider_transactions_5.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9de3b28a49f73c1f4176fdb79e80ee58c49a24e9d8e7e3c571321f6d1eca7597
|
| 3 |
+
size 27475317
|
insider_transactions_6.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:027b80ab4e9f6779c6edaae5c10aa6ec4927e7e1a730797c0077c013ad3d9837
|
| 3 |
+
size 28036123
|
insider_transactions_7.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bd076c19fcacefc53bc58374a911b96ec314f9763a0142223cd7575625403ffa
|
| 3 |
+
size 27574754
|
insider_transactions_8.tsfile
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d36de414fca45f130fd5e891ef757408ab3fdd89fd709defe673157957cae9f
|
| 3 |
+
size 25534234
|
insider_transactions_9.tsfile
ADDED
|
Binary file (6.54 kB). View file
|
|
|
senate_filings_1.tsfile
ADDED
|
Binary file (48.3 kB). View file
|
|
|
senate_filings_2.tsfile
ADDED
|
Binary file (48.8 kB). View file
|
|
|
senate_filings_3.tsfile
ADDED
|
Binary file (56.2 kB). View file
|
|
|
senate_filings_4.tsfile
ADDED
|
Binary file (51.6 kB). View file
|
|
|
senate_filings_5.tsfile
ADDED
|
Binary file (51.3 kB). View file
|
|
|
senate_filings_6.tsfile
ADDED
|
Binary file (50.1 kB). View file
|
|
|
senate_filings_7.tsfile
ADDED
|
Binary file (49 kB). View file
|
|
|
senate_filings_8.tsfile
ADDED
|
Binary file (48.6 kB). View file
|
|
|
senate_filings_9.tsfile
ADDED
|
Binary file (4.83 kB). View file
|
|
|