@@ -101,7 +101,7 @@ Zarr allows you to create hierarchical groups, similar to directories::
101101 >>> root = zarr.group("data/example-2.zarr")
102102 >>> foo = root.create_group(name="foo")
103103 >>> bar = root.create_array(
104- ... name="bar", shape=(100, 10), chunks=(10, 10)
104+ ... name="bar", shape=(100, 10), chunks=(10, 10), dtype="f4"
105105 ... )
106106 >>> spam = foo.create_array(name="spam", shape=(10,), dtype="i4")
107107 >>>
@@ -112,6 +112,7 @@ Zarr allows you to create hierarchical groups, similar to directories::
112112 >>> # print the hierarchy
113113 >>> root.tree()
114114 /
115+ ├── bar (100, 10) float32
115116 └── foo
116117 └── spam (10,) int32
117118 <BLANKLINE>
@@ -130,7 +131,7 @@ using external libraries like `s3fs <https://s3fs.readthedocs.io>`_ or
130131
131132 >>> import s3fs # doctest: +SKIP
132133 >>>
133- >>> z = zarr.create_array("s3://example-bucket/foo", mode="w", shape=(100, 100), chunks=(10, 10)) # doctest: +SKIP
134+ >>> z = zarr.create_array("s3://example-bucket/foo", mode="w", shape=(100, 100), chunks=(10, 10), dtype="f4" ) # doctest: +SKIP
134135 >>> z[:, :] = np.random.random((100, 100)) # doctest: +SKIP
135136
136137A single-file store can also be created using the the :class: `zarr.storage.ZipStore `::
0 commit comments