idata_format_from_path#

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

Return the inference-data format implied by path.

An existing directory or a name ending in .zarr is "zarr". Any other path, including one without a suffix, is "netcdf".

Parameters:

path (str | Path) – File or store path.

Return type:

IdataFormat

Returns:

"netcdf" or "zarr".