issue_comments
1 row where author_association = "CONTRIBUTOR", issue = 409906674 and user = 5852283 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- xarray .count() gives -1 when it should be 1? · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
464088384 | https://github.com/pydata/xarray/issues/2770#issuecomment-464088384 | https://api.github.com/repos/pydata/xarray/issues/2770 | MDEyOklzc3VlQ29tbWVudDQ2NDA4ODM4NA== | andrew-c-ross 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 } |
xarray .count() gives -1 when it should be 1? 409906674 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 1