home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 1349572787 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

  • mathause 1

issue 1

  • xarray.DataArray.weighted performs unweighted mean if dimension names differ without any warning · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
1225884104 https://github.com/pydata/xarray/issues/6952#issuecomment-1225884104 https://api.github.com/repos/pydata/xarray/issues/6952 IC_kwDOAMm_X85JEYHI mathause 10194086 2022-08-24T15:30:37Z 2022-09-01T14:42:48Z MEMBER

Good point, that can be surprising. I think a warning could be added.

python if not set(self.obj.dims) & set(self.weights.dims): warnings.warn("")

However, I wonder if that would be too noisy, e.g. if there is a scalar on the Dataset:

python xr.Dataset({"test_array": test_array, "scalar": 1}).weighted(weights2).mean()

(could potentially skip scalars in the check).


Edit:

https://github.com/pydata/xarray/blob/790a444b11c244fd2d33e2d2484a590f8fc000ff/xarray/core/weighted.py#L192

may not be the right place, as it checks it on the Dataset level (and not on the DataArray level).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  xarray.DataArray.weighted performs unweighted mean if dimension names differ without any warning 1349572787

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