home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER" and issue = 305373563 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 2

  • shoyer 1
  • fujiisoup 1

issue 1

  • Inconsistent type conversion when doing numpy.sum gvies different results · 2 ✖

author_association 1

  • MEMBER · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
373226888 https://github.com/pydata/xarray/issues/1989#issuecomment-373226888 https://api.github.com/repos/pydata/xarray/issues/1989 MDEyOklzc3VlQ29tbWVudDM3MzIyNjg4OA== fujiisoup 6815844 2018-03-15T01:10:37Z 2018-03-15T01:15:33Z MEMBER

I notice that bottleneck does the dtype conversion. I think in your environment bottleneck is installed.

```python In [9]: np.sum(a) # equivalent to a.sum(), using bottleneck Out[9]: <xarray.DataArray ()> array(499943.21875)

In [10]: np.sum(a.data) # numpy native Out[10]: 499941.53

In [15]: bn.nansum(a.data) Out[15]: 499943.21875

In [11]: a.sum(dim=('x', 'y')) # multiple dims calls native np.sum Out[11]: <xarray.DataArray ()> array(499941.53, dtype=float32) ```

It might be an upstream issue.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Inconsistent type conversion when doing numpy.sum gvies different results 305373563
373221066 https://github.com/pydata/xarray/issues/1989#issuecomment-373221066 https://api.github.com/repos/pydata/xarray/issues/1989 MDEyOklzc3VlQ29tbWVudDM3MzIyMTA2Ng== shoyer 1217238 2018-03-15T00:36:02Z 2018-03-15T00:36:02Z MEMBER

Strangely, it says: AttributeError: module 'xarray' has no attribute 'show_versions' Perhaps I am on a very old version?

Yes, you're using a version of xarray prior to 0.10.

What value are you using for rows/cols in your example?

Note that due to a quirk of NumPy, np.sum(a) actually corresponds to a.sum(). For xarray, a.sum() skips NaNs by default, so it's equivalent to np.nansum() or bottleneck.nansum() (if bottleneck is installed).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Inconsistent type conversion when doing numpy.sum gvies different results 305373563

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

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]);
Powered by Datasette · Queries took 15.071ms · About: xarray-datasette