load_idata#

pymc_marketing.data.idata.io.load_idata(path)[source]#

Open inference data in the format implied by path.

Parameters:

path (str | Path) – .zarr or 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 path is a Zarr store and zarr is not installed.

Examples

from pymc_marketing.data.idata import load_idata

idata = load_idata("model.zarr").load()