issues: 329066551
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 329066551 | MDU6SXNzdWUzMjkwNjY1NTE= | 2213 | xarray.Dataset.sel(time='2007-04-12') returns unexpected time dimension | 7643370 | closed | 0 | 7 | 2018-06-04T13:56:05Z | 2023-12-02T02:54:11Z | 2023-12-02T02:54:11Z | NONE | Code Sample
Problem descriptionThe current behaviour of xarray.Dataset.sel when selecting time is that it returns a 3D array with the time dimension has a length of 0. Expected OutputI expect that no time dimension is returned. This behaviour is as expected in xarray.Dataset.isel (look at the Jupyter Notebook screenshot above). Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2213/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
not_planned | 13221727 | issue |
