quantlab.dataset.config.FrameDatasetConfig#
- class quantlab.dataset.config.FrameDatasetConfig(*, zarr_file_path=None, start_date=None, end_date=None, symbols=None, kwargs=None, resample_freq=None, resample_how=None, name=None)[source]#
Bases:
BaseDatasetConfigConfig of a dataset held in memory, built from a caller’s frame or panel.
The panel itself is not part of the config: a
FrameDatasetis handed its data at construction, so no Zarr store is needed andzarr_file_pathdefaults toNone. A config that names a store is how the panel comes back from disk: aFrameDatasetbuilt from it reads that store into memory (the rebuild path of a saved backtest run, whoseconfig.jsonnames the store relative to the run directory). The dates and symbols are unused, as there is nothing to convert from raw files; the resample fields are set byresample()as on any dataset.Examples
>>> cfg = FrameDatasetConfig() >>> cfg.zarr_file_path is None True >>> FrameDatasetConfig(zarr_file_path="copies/prices.zarr").zarr_file_path 'copies/prices.zarr'
- zarr_file_path = None#
Path of a Zarr store holding the panel, read at construction;
Nonefor a panel handed over in memory.