home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

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

  • andreas-h 1
  • shoyer 1

author_association 2

  • CONTRIBUTOR 1
  • MEMBER 1

issue 1

  • add diff method to DataArray class · 2 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
124192448 https://github.com/pydata/xarray/issues/490#issuecomment-124192448 https://api.github.com/repos/pydata/xarray/issues/490 MDEyOklzc3VlQ29tbWVudDEyNDE5MjQ0OA== shoyer 1217238 2015-07-23T18:16:06Z 2015-07-23T18:16:06Z MEMBER

I agree, this would be useful. Probably should take a dim argument that specifies the dimension along which to take the differences.

I guess x.diff('x') would do something like the following?

``` python In [28]: x = xray.Dataset({'foo': ('x', [5, 5, 6, 6])})

In [29]: start = x.isel(x=slice(None, -1))

In [30]: end = x.isel(x=slice(1, None))

In [31]: start.coords['x'] = end.coords['x']

In [32]: end - start Out[32]: <xray.Dataset> Dimensions: (x: 3) Coordinates: * x (x) int64 1 2 3 Data variables: foo (x) int64 0 1 0 ```

Since this logic is the same for Dataset and DataArray objects, it could live as a method on BaseDataObject in xray/core/common.py: https://github.com/xray/xray/blob/v0.5.2/xray/core/common.py#L147

If you find yourself needing to write dataset or dataarray specific logic, write it as a Dataset method and follow the example of DataArray.swap to extend it to dataarrays: https://github.com/xray/xray/blob/v0.5.2/xray/core/dataarray.py#L659

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add diff method to DataArray class 96844263
124147990 https://github.com/pydata/xarray/issues/490#issuecomment-124147990 https://api.github.com/repos/pydata/xarray/issues/490 MDEyOklzc3VlQ29tbWVudDEyNDE0Nzk5MA== andreas-h 358378 2015-07-23T15:47:27Z 2015-07-23T15:47:27Z CONTRIBUTOR

If you can give me a pointer where in the code this would have to be implemented, I could give it a try myself ...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  add diff method to DataArray class 96844263

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