home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 394718239

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/2213#issuecomment-394718239 https://api.github.com/repos/pydata/xarray/issues/2213 394718239 MDEyOklzc3VlQ29tbWVudDM5NDcxODIzOQ== 7643370 2018-06-05T13:55:30Z 2018-06-05T13:55:30Z NONE

@shoyer I created a notebook to reproduce this issue with self-contained dummy data and I think I know when this issue occurs.

In both cases (my original application and in the notebook example), the time dimension of the DataArray comes with time. When selecting it using .sel, when time is specified with date and time, the returned DataArray is rightly 2D. However, when the time selection includes only the date (when calling xarray.Dataset.sel), the return includes an unexpected time dimension. In the notebook example, the time dimension is 1 because it could find the right date whereas in my application, time dimension is 0 because it could not find the queried date. I am not sure what is the expected behaviour here.

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