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-20 | 333.510010 | 333.709991 | 323.679993 | 326.589996 | 53468000 |
| 2026-07-21 | 323.130005 | 329.600006 | 322.220001 | 327.739990 | 41338900 |
| 2026-07-22 | 327.869995 | 329.000000 | 323.339996 | 325.890015 | 38755900 |
| 2026-07-23 | 321.730011 | 323.299988 | 319.350006 | 321.660004 | 40840800 |
| 2026-07-24 | NaN | NaN | NaN | NaN | 47460975 |