home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where issue = 193294729 and user = 10050469 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: updated_at (date)

user 1

  • fmaussion · 2 ✖

issue 1

  • Scalar coords seep into index coords · 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
264913502 https://github.com/pydata/xarray/issues/1152#issuecomment-264913502 https://api.github.com/repos/pydata/xarray/issues/1152 MDEyOklzc3VlQ29tbWVudDI2NDkxMzUwMg== fmaussion 10050469 2016-12-05T17:09:34Z 2016-12-05T17:09:34Z MEMBER

sometime coordinates really only describe the data variable(s)

Yes. What I meant with my yesterday's late night answer is that keeping the coordinates around could be most useful when using irregular coordinates...

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Scalar coords seep into index coords 193294729
264737209 https://github.com/pydata/xarray/issues/1152#issuecomment-264737209 https://api.github.com/repos/pydata/xarray/issues/1152 MDEyOklzc3VlQ29tbWVudDI2NDczNzIwOQ== fmaussion 10050469 2016-12-04T22:35:54Z 2016-12-04T22:35:54Z MEMBER

I think it's fine. Coordinates sometimes need to be defined by paired coords too:

python import xarray as xr import numpy as np lon, lat = np.meshgrid(np.linspace(-20, 20, 5), np.linspace(0, 30, 4)) da = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'], coords = {'lat': (('y', 'x'), lat), 'lon': (('y', 'x'), lon)}) da.isel(x=2)['lat'] <xarray.DataArray 'lat' (y: 4)> array([ 0., 10., 20., 30.]) Coordinates: lon (y) float64 0.0 0.0 0.0 0.0 lat (y) float64 0.0 10.0 20.0 30.0 * y (y) int64 0 1 2 3 x int64 2

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Scalar coords seep into index coords 193294729

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