home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where author_association = "NONE" and user = 23265127 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

issue 3

  • Creation of an empty DataArray 1
  • [Feature Request] iteration equivalent numpy's nditer or ndenumerate 1
  • Assigning values to a subset of a dataset 1

user 1

  • AdrianSosic · 3 ✖

author_association 1

  • NONE · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
501202662 https://github.com/pydata/xarray/issues/3015#issuecomment-501202662 https://api.github.com/repos/pydata/xarray/issues/3015 MDEyOklzc3VlQ29tbWVudDUwMTIwMjY2Mg== AdrianSosic 23265127 2019-06-12T09:52:16Z 2019-06-12T09:52:16Z NONE

Thanks for the quick reply! I really like the xarray package and hope that someone will add this functionality in the future since it would significantly improve the usability in certain situations. I am unfortunately not yet experienced enough with the package to take care of it myself - perhaps at a later point in time... For the time being, I will therefore stick with the above solutions ;)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Assigning values to a subset of a dataset 454677926
472156039 https://github.com/pydata/xarray/issues/277#issuecomment-472156039 https://api.github.com/repos/pydata/xarray/issues/277 MDEyOklzc3VlQ29tbWVudDQ3MjE1NjAzOQ== AdrianSosic 23265127 2019-03-12T19:53:21Z 2019-03-12T19:53:21Z NONE

Hi, I am also looking for a solution to create an "empty" xarray (filled with some default value, say, 0 or NaN) whose size gets automatically determined by its coordinates (which are passed to the DataSet constructor as a dict). Has there been any progress since the original post by andreas-h?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Creation of an empty DataArray 48301141
471978276 https://github.com/pydata/xarray/issues/2805#issuecomment-471978276 https://api.github.com/repos/pydata/xarray/issues/2805 MDEyOklzc3VlQ29tbWVudDQ3MTk3ODI3Ng== AdrianSosic 23265127 2019-03-12T12:23:23Z 2019-03-12T12:23:23Z NONE

Hi shoyer, many thanks for your quick reply. Converting the xarray to a DataFrame indeed does the job and I will use this solution for the time being. Nevertheless, to me the approach seems rather like an ad-hoc solution since it requires a series of conversions / function calls and I feel like there should be some built-in solution from xarray. In particular, in the above solution, you lose track of what are the coordinates and what is the actual data (all is stored in a single NamedTuple), which requires an additional step to separate the two data structures. Anyway, thanks for your help! If you find another solution, please let me know!

{
    "total_count": 3,
    "+1": 3,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  [Feature Request] iteration equivalent numpy's nditer or ndenumerate 419543087

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