require_zarr#

pymc_marketing.data.idata.io.require_zarr(*, writing=False)[source]#

Raise ImportError with an install hint when Zarr stores cannot be used.

Parameters:

writing (bool) – Also require the xarray release that can write Zarr 3 stores.

Raises:

ImportError – If zarr cannot be imported, or writing is True and xarray is older than the floor of the zarr extra.