home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 289790965 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

  • DataArray.sum does not respect dtype keyword · 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
358851474 https://github.com/pydata/xarray/issues/1838#issuecomment-358851474 https://api.github.com/repos/pydata/xarray/issues/1838 MDEyOklzc3VlQ29tbWVudDM1ODg1MTQ3NA== shoyer 1217238 2018-01-19T02:50:13Z 2018-01-19T02:50:13Z MEMBER

We do this for two reasons: - bottleneck's aggregation functions like bottleneck.nansum() don't have a dtype argument, so passing on a dtype argument causes an error to be raised. - If you call a numpy function like numpy.sum() on an xarray object, it calls the appropriate method with all keyword arguments, e.g., numpy.sum(xarray_obj) -> xarray_obj.sum(axis=None, dtype=None, out=None).

What we should probably do here instead of ignoring dtype and out entirely is to look at their values: - If dtype is not None, use numpy's aggregation function instead of bottleneck's. - If out is not None, raise an error.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray.sum does not respect dtype keyword 289790965
358847017 https://github.com/pydata/xarray/issues/1838#issuecomment-358847017 https://api.github.com/repos/pydata/xarray/issues/1838 MDEyOklzc3VlQ29tbWVudDM1ODg0NzAxNw== fujiisoup 6815844 2018-01-19T02:21:39Z 2018-01-19T02:22:06Z MEMBER

I notice here

https://github.com/pydata/xarray/blob/f3deb2f2495220af819021b199a5305b0d62ef36/xarray/core/duck_array_ops.py#L177-L181

we removed dtype arguments from reduce methods, but I'm not sure why. This might be a bug.

As a temporal solution, python da.reduce(np.sum, dtype="i4") preserves dtype.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  DataArray.sum does not respect dtype keyword 289790965

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 647.91ms · About: xarray-datasette
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows