home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 919974416

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/issues/1408#issuecomment-919974416 https://api.github.com/repos/pydata/xarray/issues/1408 919974416 IC_kwDOAMm_X8421bIQ 4160723 2021-09-15T12:27:34Z 2021-09-15T12:27:34Z MEMBER

@fujiisoup the behavior that you expect has been implemented in #5692 (I still need to fix/update the tests):

```python

ds.sel(x=2) <xarray.Dataset> Dimensions: (y: 2) Coordinates: * y (y) <U1 'a' 'b' x int64 2 Data variables: foo (y) int64 2 5 ```

```python

ds.isel(yx=0) <xarray.Dataset> Dimensions: () Coordinates: yx object ('a', 1) y <U1 'a' x int64 1 Data variables: foo int64 1 ```

Note that for the latter example, the yx coordinate may eventually become irrelevant for multi-indexes (we'll need only the level coordinates).

@gabriel-abrahao feel free to open a new issue for your suggestion.

{
    "total_count": 3,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 1,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  228295383
Powered by Datasette · Queries took 0.604ms · About: xarray-datasette