home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "MEMBER" and issue = 831148018 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • dcherian 1
  • max-sixty 1
  • mathause 1

issue 1

  • output_dtypes needs to be a tuple, not a sequence · 3 ✖

author_association 1

  • MEMBER · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
822130302 https://github.com/pydata/xarray/issues/5034#issuecomment-822130302 https://api.github.com/repos/pydata/xarray/issues/5034 MDEyOklzc3VlQ29tbWVudDgyMjEzMDMwMg== dcherian 2448579 2021-04-19T02:49:32Z 2021-04-19T02:49:32Z MEMBER

@LunarLanding can you add a minimal example illustrating the problem?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  output_dtypes needs to be a tuple, not a sequence 831148018
798999639 https://github.com/pydata/xarray/issues/5034#issuecomment-798999639 https://api.github.com/repos/pydata/xarray/issues/5034 MDEyOklzc3VlQ29tbWVudDc5ODk5OTYzOQ== mathause 10194086 2021-03-14T23:23:05Z 2021-03-14T23:23:05Z MEMBER

Hmm would be good to get a MVCE - may be a dask problem. Dask allows a "list of dtypes" according to its docstring.

  • dask.array.apply_gufunc: output_dtypes : Optional, dtype or list of dtypes, keyword only
  • np.vectorize: otypes : str or list of dtypes, optional

Unfortunately np.vectorize is not (yet) typed, but in anycase (and independent of your error report) we should probably write this as Sequence[DTypeLike] (or another container) using xr.core.npcompat.DTypeLike

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  output_dtypes needs to be a tuple, not a sequence 831148018
798973169 https://github.com/pydata/xarray/issues/5034#issuecomment-798973169 https://api.github.com/repos/pydata/xarray/issues/5034 MDEyOklzc3VlQ29tbWVudDc5ODk3MzE2OQ== max-sixty 5635139 2021-03-14T20:22:04Z 2021-03-14T20:22:04Z MEMBER

Thanks @LunarLanding .

Does anyone who knows this better have a view on whether we should accept a list? In lieu of that, we can change the type definition. @LunarLanding would you be up for a small PR?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  output_dtypes needs to be a tuple, not a sequence 831148018

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