zarr.create_group
zarr.create_group ¶
create_group(
store: StoreLike,
*,
path: str | None = None,
zarr_format: ZarrFormat | None = None,
overwrite: bool = False,
attributes: dict[str, Any] | None = None,
storage_options: dict[str, Any] | None = None,
) -> Group
Create a group.
Parameters:
-
store(StoreLike) –StoreLike object to open. See the storage documentation in the user guide for a description of all valid StoreLike values.
-
path(str, default:None) –Group path within store.
-
overwrite(bool, default:False) –If True, pre-existing data at
pathwill be deleted before creating the group. -
zarr_format((2, 3, None), default:2) –The zarr format to use when saving. If no
zarr_formatis provided, the default format will be used. This default can be changed by modifying the value ofdefault_zarr_formatinzarr.config. -
storage_options(dict, default:None) –If using an fsspec URL to create the store, these will be passed to the backend implementation. Ignored otherwise.
Returns:
-
Group–The new group.