home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 606846911 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • dcherian 1

issue 1

  • Allow DataArray.to_series() without invoking sparse.COO.todense() · 1 ✖

author_association 1

  • MEMBER 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
633745037 https://github.com/pydata/xarray/pull/4007#issuecomment-633745037 https://api.github.com/repos/pydata/xarray/issues/4007 MDEyOklzc3VlQ29tbWVudDYzMzc0NTAzNw== dcherian 2448579 2020-05-25T23:50:20Z 2020-05-25T23:50:20Z MEMBER

Thanks @khaeru

Make the same improvement in {DataArray,Dataset}.to_dataframe().

I think only Dataset._to_dataframe is needed since DataArray.to_dataframe() calls that.

Possibly move the code out of dataarray.py to a more appropriate location (where?).

Perhaps to_series could be refactored to use _to_dataframe too?

Possibly check for sparse.COO explicitly instead of xarray.core.pycompat.sparse_array_type. Other SparseArray subclasses, e.g. DOK, may not have the same attributes.

:+1: Should add something to the docstring once you figure this out.

This PR also needs tests.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Allow DataArray.to_series() without invoking sparse.COO.todense() 606846911

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