home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

4 rows where issue = 325609580 and user = 1217238 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

user 1

  • shoyer · 4 ✖

issue 1

  • Datasets more robust to non-string keys · 4 ✖

author_association 1

  • MEMBER 4
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
392366040 https://github.com/pydata/xarray/pull/2174#issuecomment-392366040 https://api.github.com/repos/pydata/xarray/issues/2174 MDEyOklzc3VlQ29tbWVudDM5MjM2NjA0MA== shoyer 1217238 2018-05-27T20:48:40Z 2018-05-27T20:48:40Z MEMBER

thanks @maxim-lian !

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datasets more robust to non-string keys 325609580
392111566 https://github.com/pydata/xarray/pull/2174#issuecomment-392111566 https://api.github.com/repos/pydata/xarray/issues/2174 MDEyOklzc3VlQ29tbWVudDM5MjExMTU2Ng== shoyer 1217238 2018-05-25T16:28:52Z 2018-05-25T16:48:15Z MEMBER

But I think just supporting this for isel/sel/reindex for now would be enough to be valuable. Note that currently it's on Dataset.reindex() but not DataArray.reindex().

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datasets more robust to non-string keys 325609580
392103771 https://github.com/pydata/xarray/pull/2174#issuecomment-392103771 https://api.github.com/repos/pydata/xarray/issues/2174 MDEyOklzc3VlQ29tbWVudDM5MjEwMzc3MQ== shoyer 1217238 2018-05-25T15:59:50Z 2018-05-25T15:59:50Z MEMBER

Looking through Dataset/DataArray methods that support **kwargs, I think this may be the full list: - [ ] stack - [ ] shift - [ ] roll - [ ] set_index - [ ] reorder_levels - [ ] rolling - [ ] resample (not yet, we still support old behavior for the first positional arguments with a warning)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datasets more robust to non-string keys 325609580
391957538 https://github.com/pydata/xarray/pull/2174#issuecomment-391957538 https://api.github.com/repos/pydata/xarray/issues/2174 MDEyOklzc3VlQ29tbWVudDM5MTk1NzUzOA== shoyer 1217238 2018-05-25T06:42:28Z 2018-05-25T06:42:28Z MEMBER

Arg name?

I'd like a convention of matching names to make it clear in docstrings that these are the same thing, e.g., - something_dict/**something, or - something/**something_kwargs

Probably the last is best since users will never have cause to type the longer argument name ending with _kwargs.

In practice, I suspect these first arguments are almost always going to be used positionally. We might even imagine making them positional only argument if PEP 570 is ever accepted. So I don't think it matters too much.

Combine or raise if supplied with kwargs?

Let's raise (like your current implementation) if both are provided. Combining could be error prone and seems unnecessarily complicated.

This is the same logic I implemented in the somewhat misleadingly named utils.combine_pos_and_kw_args() utility function (used by Dataset.reindex()).

Is there an encapsulation leak? Should we have a user API layer which is then translated to a more robust representation (i.e. kwargs to a dict), and those be separate methods? My initial inclination is that the current approach is good and managable

I agree -- I think the current version is manageable.

For internal use, we should always use the positional argument, but there's not much harm in leaving **kwargs around.

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Datasets more robust to non-string keys 325609580

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