THULab/xrpusdt_spot_1m_05_2021_to_03_2026
xrpusdt_spot_1m_05_2021_to_03_2026 (TsFile) Apache TsFile version of Torch-Trade/xrpusdt_spot_1m_05_2021_to_03_2026. Converted rows: 2,541,600 Data files: ['xrpusdt_spot_1m_05_2021_to_03_2026.tsfile'] Usage Install the Apache TsFile Python SDK (pip install tsfile) and read a converted file: from pathlib import Path from tsfile import TsFileReader path = Path("xrpusdt_spot_1m_05_2021_to_03_2026.tsfile") with TsFileReader(str(path)) as reader: schemas =… See the full description on the dataset page: https://huggingface.co/datasets/THULab/xrpusdt_spot_1m_05_2021_to_03_2026.
xrpusdtspot1m052021to03_2026 (TsFile)
Apache TsFile version of `Torch-Trade/xrpusdt_spot_1m_05_2021_to_03_2026`.
- Converted rows: 2,541,600
- Data files:
['xrpusdt_spot_1m_05_2021_to_03_2026.tsfile']
Usage
Install the Apache TsFile Python SDK (pip install tsfile) and read a converted file:
from pathlib import Path
from tsfile import TsFileReader
path = Path("xrpusdt_spot_1m_05_2021_to_03_2026.tsfile")
with TsFileReader(str(path)) as reader:
schemas = reader.get_all_table_schemas()
print("tables:", list(schemas))
table_name = next(iter(schemas))
table = schemas[table_name]
columns = [column.get_column_name() for column in table.get_columns()]
print("columns:", columns)
field_names = [
column.get_column_name()
for column in table.get_columns()
if column.get_column_name() not in {"Time", "time"}
]
if field_names:
with reader.query_table(table_name, field_names[:3], batch_size=1024) as result:
batch = result.read_arrow_batch()
if batch is not None:
print(batch.to_pandas().head())Source & license
- Original dataset: https://huggingface.co/datasets/Torch-Trade/xrpusdtspot1m052021to03_2026
- Author / publisher: Torch-Trade
- License: mit
