home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 549679475 and user = 10194086 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: updated_at (date)

These facets timed out: author_association

user 1

  • mathause · 3 ✖

issue 1

  • xr.dot requires equal indexes (join="exact") · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
575104969 https://github.com/pydata/xarray/issues/3694#issuecomment-575104969 https://api.github.com/repos/pydata/xarray/issues/3694 MDEyOklzc3VlQ29tbWVudDU3NTEwNDk2OQ== mathause 10194086 2020-01-16T11:15:25Z 2020-01-16T11:15:25Z MEMBER

Sorry for the noise, I do live thinking...


However, if I do (2) there is a different behavior for (d1 * d2).sum() and d1 @ d2 in one case:

python with xr.set_options(arithmetic_join="exact"): xr.dot(d2, d3) # -> array(8) (d2 * d3).sum() # -> ValueError

So? python join = OPTIONS["arithmetic_join"] if join not in ["exact", "inner"]: join = "inner"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.dot requires equal indexes (join="exact") 549679475
575097853 https://github.com/pydata/xarray/issues/3694#issuecomment-575097853 https://api.github.com/repos/pydata/xarray/issues/3694 MDEyOklzc3VlQ29tbWVudDU3NTA5Nzg1Mw== mathause 10194086 2020-01-16T10:56:40Z 2020-01-16T10:57:08Z MEMBER

On second thought, even with implemented skipna the result will not differ between join="inner", join="left" join="right", and join="outer"; i.e.:

python with xr.set_options(arithmetic_join="outer"): print((d1 * d2).sum()) # -> 38 So I guess (2) is fine.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.dot requires equal indexes (join="exact") 549679475
575094227 https://github.com/pydata/xarray/issues/3694#issuecomment-575094227 https://api.github.com/repos/pydata/xarray/issues/3694 MDEyOklzc3VlQ29tbWVudDU3NTA5NDIyNw== mathause 10194086 2020-01-16T10:47:33Z 2020-01-16T10:47:33Z MEMBER

I started with a PR using join = OPTIONS["arithmetic_join"] but then I realized that dot does not support skipna. Thus join="left" join="right", and join="outer" returns NaN for nonequal coords, which I think defeats the purpose. I can

1) Use OPTIONS["arithmetic_join"] anyway 2) Only support join="inner" (i.e. hard-code it in the call to apply_ufunc) 3) try to implement skipna for dot (in a separate PR) 4) Other?

(3) is certainly the largest change but may be as easy as da.fillna(0.). Thoughts?

``` python import numpy as np import xarray as xr

d1 = xr.DataArray([2, 3, 5, np.NaN]) d2 = xr.DataArray([2, 3, 5, 7])

xr.dot(d1, d2) # -> NaN

xr.dot(d1.fillna(0.), d2) # -> 38 (d1 * d2).sum() # -> 38

```

I use this at: https://github.com/pydata/xarray/blob/3cc00c121931b5dc0247b4ea5809c4051a4dacdd/xarray/core/weighted.py#L142-L149

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.dot requires equal indexes (join="exact") 549679475

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 4240.928ms · About: xarray-datasette