load_idata#
- pymc_marketing.data.idata.io.load_idata(path)[source]#
Open inference data in the format implied by
path.- Parameters:
path (
str|Path) –.zarror an existing directory for a Zarr store, anything else for netCDF.- Return type:
xr.DataTree- Returns:
Lazily loaded tree for both backends.
- Raises:
ImportError – If
pathis a Zarr store andzarris not installed.
Examples
from pymc_marketing.data.idata import load_idata idata = load_idata("model.zarr").load()