home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "NONE" and issue = 1470583016 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • mattragoza 3

issue 1

  • xr.corr produces incorrect output for complex arrays · 3 ✖

author_association 1

  • NONE · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1334059488 https://github.com/pydata/xarray/issues/7340#issuecomment-1334059488 https://api.github.com/repos/pydata/xarray/issues/7340 IC_kwDOAMm_X85PhCHg mattragoza 7647340 2022-12-01T16:50:49Z 2022-12-01T16:50:49Z NONE

The problem is in https://github.com/pydata/xarray/blob/main/xarray/core/computation.py#L1402-L1404. You need to conjugate one of the arrays before computing the dot product.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.corr produces incorrect output for complex arrays 1470583016
1334027040 https://github.com/pydata/xarray/issues/7340#issuecomment-1334027040 https://api.github.com/repos/pydata/xarray/issues/7340 IC_kwDOAMm_X85Pg6Mg mattragoza 7647340 2022-12-01T16:25:26Z 2022-12-01T16:25:26Z NONE

I'm now noticing that scipy.stats.pearsonr returns the same value as xr.corr.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.corr produces incorrect output for complex arrays 1470583016
1334024381 https://github.com/pydata/xarray/issues/7340#issuecomment-1334024381 https://api.github.com/repos/pydata/xarray/issues/7340 IC_kwDOAMm_X85Pg5i9 mattragoza 7647340 2022-12-01T16:23:25Z 2022-12-01T16:23:25Z NONE

Yes. If I use a np.array and call np.corrcoef, I get a 2x2 correlation matrix full of ones.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xr.corr produces incorrect output for complex arrays 1470583016

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