idata_from_zarr#

pymc_marketing.data.idata.utils.idata_from_zarr(store)[source]#

Load an InferenceData from a Zarr store.

TODO: Remove this shim once we require arviz>=1.0.

Counterpart to idata_to_zarr(). Works with zarr>=3. Mirrors the approach taken by arviz>=1.0, where from_zarr is functools.partial(open_datatree, engine="zarr").

Parameters:
storestr or Path

Path to the Zarr store directory written by idata_to_zarr().

Returns:
az.InferenceData