idata_to_zarr#

pymc_marketing.data.idata.io.idata_to_zarr(idata, store, groups=None, **kwargs)[source]#

Write a DataTree to a Zarr directory store.

Parameters:
Raises:
  • ImportError – If zarr is not installed.

  • ValueError – If the filesystem is case-insensitive and the tree holds names that differ only by letter case. zarr’s ContainsArrayError and ContainsGroupError are ValueError subclasses too; this one names the offending variables.

Warns:
UserWarning

After a successful write, if any node holds names that differ only by letter case: the store will not load on a case-insensitive filesystem.