home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 320104170 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 2

  • shoyer 1
  • crusaderky 1

issue 1

  • An elegant way to guarantee single chunk along dim · 2 ✖

author_association 1

  • MEMBER 2
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
386719797 https://github.com/pydata/xarray/issues/2103#issuecomment-386719797 https://api.github.com/repos/pydata/xarray/issues/2103 MDEyOklzc3VlQ29tbWVudDM4NjcxOTc5Nw== crusaderky 6213168 2018-05-04T20:10:50Z 2018-05-04T20:11:30Z MEMBER

DOH! I never spotted .sizes. Now I feel like an idiot.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  An elegant way to guarantee single chunk along dim 320104170
386643615 https://github.com/pydata/xarray/issues/2103#issuecomment-386643615 https://api.github.com/repos/pydata/xarray/issues/2103 MDEyOklzc3VlQ29tbWVudDM4NjY0MzYxNQ== shoyer 1217238 2018-05-04T15:49:28Z 2018-05-04T15:49:28Z MEMBER

I think we do both your designs 1 and 2.

One could argue that the implementation would need to happen in dask.array.rechunk

You can actually already write x.rechunk(-1) if x is a dask array, but I overlooked adding support if chunks are specified with a dict (which is what xarray uses). See https://github.com/dask/dask/pull/3469 for the fix.

Add properties to DataArray and Variable, ddims and dshape (happy to hear suggestions about better names), which would return dims and shape as a OrderedDict, just like Dataset.dims and Dataset.shape.

This is exactly what the .sizes property is. So x = x.chunk({dim: x.sizes[dim]}) should already work.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  An elegant way to guarantee single chunk along dim 320104170

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