issues: 1839199929
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1839199929 | PR_kwDOAMm_X85XUl4W | 8051 | Allow setting (or skipping) new indexes in open_dataset | 4160723 | open | 0 | 9 | 2023-08-07T10:53:46Z | 2024-02-03T19:12:48Z | MEMBER | 0 | pydata/xarray/pulls/8051 |
This PR introduces a new boolean parameter Currently works with the Zarr backend: ```python import numpy as np import xarray as xr example dataset (real dataset may be much larger)arr = np.random.random(size=1_000_000) xr.Dataset({"x": arr}).to_zarr("dataset.zarr") xr.open_dataset("dataset.zarr", set_indexes=False, engine="zarr") <xarray.Dataset>Dimensions: (x: 1000000)Coordinates:x (x) float64 ...Data variables:emptyxr.open_zarr("dataset.zarr", set_indexes=False) <xarray.Dataset>Dimensions: (x: 1000000)Coordinates:x (x) float64 ...Data variables:empty``` I'll add it to the other Xarray backends as well, but I'd like to get your thoughts about the API first.
Currently 1 and 2 are implemented in this PR, although as I write this comment I think that I would prefer 3. I guess this depends on whether we prefer |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/8051/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | pull |