home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

3 rows where issue = 289837692 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 3

  • shoyer 1
  • nbren12 1
  • stale[bot] 1

author_association 3

  • CONTRIBUTOR 1
  • MEMBER 1
  • NONE 1

issue 1

  • Add simple array creation functions for easier unit testing · 3 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
567778802 https://github.com/pydata/xarray/issues/1839#issuecomment-567778802 https://api.github.com/repos/pydata/xarray/issues/1839 MDEyOklzc3VlQ29tbWVudDU2Nzc3ODgwMg== stale[bot] 26384082 2019-12-20T04:04:38Z 2019-12-20T04:04:38Z NONE

In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity

If this issue remains relevant, please comment here or remove the stale label; otherwise it will be marked as closed automatically

{
    "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
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
358850297 https://github.com/pydata/xarray/issues/1839#issuecomment-358850297 https://api.github.com/repos/pydata/xarray/issues/1839 MDEyOklzc3VlQ29tbWVudDM1ODg1MDI5Nw== shoyer 1217238 2018-01-19T02:42:41Z 2018-01-19T02:42:41Z MEMBER

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

I think the main reason why we don't have these helpers is that xr.DataArray(np.ones(3, 4), dims=['x', 'y']) is nearly as succinct

I suppose we could possibly do better now that newer versions of Python (3.6+) guarantee order for keyword arguments, so we could have something like xr.ones(x=3, y=4).

{
    "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 13.367ms · About: xarray-datasette