import qrt as q
aapl = q.data.datasets.load("aapl")Local files
q.data.load/q.data.save dispatch on the file suffix: .parquet (via DuckDB) or .csv (via pandas). A quick round trip through a temp directory:
import tempfile
from pathlib import Path
with tempfile.TemporaryDirectory() as tmp:
path = Path(tmp) / "aapl.parquet"
q.data.save(aapl.tail(30), path, index=True)
roundtrip = q.data.load(path, index="datetime")
roundtrip.tail()| open | high | low | close | volume | |
|---|---|---|---|---|---|
| datetime | |||||
| 2026-07-13 | 317.019989 | 323.450012 | 315.779999 | 317.309998 | 43257800 |
| 2026-07-14 | 313.760010 | 316.190002 | 311.910004 | 314.859985 | 36336800 |
| 2026-07-15 | 317.619995 | 328.730011 | 317.320007 | 327.500000 | 60957600 |
| 2026-07-16 | 328.010010 | 334.679993 | 326.790009 | 333.260010 | 62970600 |
| 2026-07-17 | 331.980011 | 334.989990 | 329.000000 | 333.739990 | 63365300 |