issue_comments: 464088384
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/2770#issuecomment-464088384 | https://api.github.com/repos/pydata/xarray/issues/2770 | 464088384 | MDEyOklzc3VlQ29tbWVudDQ2NDA4ODM4NA== | 5852283 | 2019-02-15T15:22:48Z | 2019-02-15T15:22:48Z | CONTRIBUTOR | I can reproduce OP when the coordinate is a datetime64, but the problem does not occur with int64s (or float64s). datetime coordinate: ``` In [1]: import xarray In [2]: xarray.version Out[2]: '0.11.2' In [3]: import datetime as dt In [4]: da = xarray.DataArray([0], coords=[('time', [dt.datetime(1979, 1, 1)])]) In [5]: da.isel(time=0).time.count() Out[5]: <xarray.DataArray 'time' ()> array(-1) Coordinates: time datetime64[ns] 1979-01-01 ``` int coordinate: ``` In [6]: da = xarray.DataArray([0], coords=[('time', [0])]) In [7]: da.isel(time=0).time.count() Out[7]: <xarray.DataArray 'time' ()> array(1) Coordinates: time int64 0 ``` |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
409906674 |