home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where author_association = "MEMBER", issue = 354324342 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

These facets timed out: author_association

user 1

  • shoyer · 4 ✖

issue 1

  • Adding data kwarg to copy to create new objects with same structure as original · 4 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
422473891 https://github.com/pydata/xarray/pull/2384#issuecomment-422473891 https://api.github.com/repos/pydata/xarray/issues/2384 MDEyOklzc3VlQ29tbWVudDQyMjQ3Mzg5MQ== shoyer 1217238 2018-09-18T17:10:46Z 2018-09-18T17:10:46Z MEMBER

If we're all happy with copy (which I think we are), then this should be good to go!

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding data kwarg to copy to create new objects with same structure as original 354324342
421177555 https://github.com/pydata/xarray/pull/2384#issuecomment-421177555 https://api.github.com/repos/pydata/xarray/issues/2384 MDEyOklzc3VlQ29tbWVudDQyMTE3NzU1NQ== shoyer 1217238 2018-09-13T22:53:32Z 2018-09-13T22:53:32Z MEMBER

template.copy(data=new_data)? That seems pretty clear, actually.

{
    "total_count": 2,
    "+1": 2,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding data kwarg to copy to create new objects with same structure as original 354324342
419480046 https://github.com/pydata/xarray/pull/2384#issuecomment-419480046 https://api.github.com/repos/pydata/xarray/issues/2384 MDEyOklzc3VlQ29tbWVudDQxOTQ4MDA0Ng== shoyer 1217238 2018-09-07T15:40:53Z 2018-09-07T15:40:53Z MEMBER

More ideas: - xarray.copy_structure(template, new_data) - xarray.structured_like(new_data, template) - xarray.copy_labels(template, new_data)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding data kwarg to copy to create new objects with same structure as original 354324342
419476614 https://github.com/pydata/xarray/pull/2384#issuecomment-419476614 https://api.github.com/repos/pydata/xarray/issues/2384 MDEyOklzc3VlQ29tbWVudDQxOTQ3NjYxNA== shoyer 1217238 2018-09-07T15:29:40Z 2018-09-07T15:29:40Z MEMBER

What about a DataArray method called replace_data or with_data? e.g., data_array.replace_data(new_data) or data_array.with_data(new_data).

We could also make a more general DataArray.replace method (inspired by collections.namedtuple._replace) that lets you replace any of data, coords, dims, attrs or encoding on a top object. Then this would look like data_array.replace(new_data) or data_array.replace(attrs=new_attrs). Replacing name or dims could invoke the rename() method.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Adding data kwarg to copy to create new objects with same structure as original 354324342

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