home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

6 rows where author_association = "MEMBER", issue = 801728730 and user = 14808389 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • keewis · 6 ✖

issue 1

  • apply to dataset · 6 ✖

author_association 1

  • MEMBER · 6 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
892746284 https://github.com/pydata/xarray/pull/4863#issuecomment-892746284 https://api.github.com/repos/pydata/xarray/issues/4863 IC_kwDOAMm_X841Njos keewis 14808389 2021-08-04T15:17:51Z 2021-08-04T15:17:51Z MEMBER

that name is temporary, which means it is only visible within the user function. call_on_dataset returns the original name (which I think means the user function shouldn't rename, because that would be silently undone)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730
885952834 https://github.com/pydata/xarray/pull/4863#issuecomment-885952834 https://api.github.com/repos/pydata/xarray/issues/4863 IC_kwDOAMm_X840zpFC keewis 14808389 2021-07-23T22:59:13Z 2021-07-23T22:59:13Z MEMBER

IIUC people can do .rename rather than passing a name.

passing the name makes it cleaner, but we could also add a default value (THIS_ARRAY?).

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730
817134098 https://github.com/pydata/xarray/pull/4863#issuecomment-817134098 https://api.github.com/repos/pydata/xarray/issues/4863 MDEyOklzc3VlQ29tbWVudDgxNzEzNDA5OA== keewis 14808389 2021-04-10T13:07:13Z 2021-04-10T13:08:05Z MEMBER

upon further consideration, I think we have the choice between using a generic name, raising for unnamed DataArray objects or adding a name parameter, with a default to None / the THIS_ARRAY object which would be similar to saying "I don't care about the name" (and either always use that name or only for unnamed DataArray objects).

I think I would prefer option 3a (always use the passed name, even if the DataArray already had a name).

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730
799663264 https://github.com/pydata/xarray/pull/4863#issuecomment-799663264 https://api.github.com/repos/pydata/xarray/issues/4863 MDEyOklzc3VlQ29tbWVudDc5OTY2MzI2NA== keewis 14808389 2021-03-15T18:44:19Z 2021-03-15T18:44:19Z MEMBER

I switched to dataarray_to_dataset instead of _to_temp_dataset. However, it might be important to be able to reference the data variable by name, which leaves us two choices: move _THIS_ARRAY to the public namespace or rename to a string. I chose the latter (not sure if there's a better choice) and modified the notes.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730
797034254 https://github.com/pydata/xarray/pull/4863#issuecomment-797034254 https://api.github.com/repos/pydata/xarray/issues/4863 MDEyOklzc3VlQ29tbWVudDc5NzAzNDI1NA== keewis 14808389 2021-03-11T20:40:21Z 2021-03-11T20:40:21Z MEMBER

call_on_dataset, maybe?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730
773688928 https://github.com/pydata/xarray/pull/4863#issuecomment-773688928 https://api.github.com/repos/pydata/xarray/issues/4863 MDEyOklzc3VlQ29tbWVudDc3MzY4ODkyOA== keewis 14808389 2021-02-05T00:14:33Z 2021-02-05T00:14:33Z MEMBER

sure, although I would use xr.apply_as_dataset(func_that_expects_datasets, dataset_or_dataarray, *args, **kwargs)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  apply to dataset 801728730

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