home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 289837692 and user = 1386642 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

  • nbren12 · 1 ✖

issue 1

  • Add simple array creation functions for easier unit testing · 1 ✖

author_association 1

  • CONTRIBUTOR 1
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
358853933 https://github.com/pydata/xarray/issues/1839#issuecomment-358853933 https://api.github.com/repos/pydata/xarray/issues/1839 MDEyOklzc3VlQ29tbWVudDM1ODg1MzkzMw== nbren12 1386642 2018-01-19T03:07:32Z 2018-01-19T03:09:08Z CONTRIBUTOR

I guess the main reason barrier for me is initializing the coordinates quickly, which xr.DataArray(np.ones(3, 4), dims=['x', 'y']) doesn't do.

What would use suggest for the signature of a function like xr.ones?

Something like the following would work for me:

```python def ones(shape, dims=None): """Create DataArray of ones with initialized coordinates

Parameters
----------
shape : tuple
    shape of the array
dims : list of str, optional
    list of dimensions with same length as shape. The default will be
    dim_0, dim_1,...,etc
coordinate_initializer : optional
    function which returns the appropriate coordinates. The signature for
    this function must be coordinate_initializer(dim, dim_length). The
    default is to initialize all the coordinates with
    ``np.arange(dim_length)``
"""
pass

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Add simple array creation functions for easier unit testing 289837692

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