home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

2 rows where author_association = "MEMBER", issue = 199816142 and user = 10050469 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

  • fmaussion · 2 ✖

issue 1

  • Problem with creating coords by dict · 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
271904169 https://github.com/pydata/xarray/issues/1197#issuecomment-271904169 https://api.github.com/repos/pydata/xarray/issues/1197 MDEyOklzc3VlQ29tbWVudDI3MTkwNDE2OQ== fmaussion 10050469 2017-01-11T15:47:50Z 2017-01-11T15:47:50Z MEMBER

@shoyer maybe changing the warning into an error would be the way to go now?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Problem with creating coords by dict 199816142
271903682 https://github.com/pydata/xarray/issues/1197#issuecomment-271903682 https://api.github.com/repos/pydata/xarray/issues/1197 MDEyOklzc3VlQ29tbWVudDI3MTkwMzY4Mg== fmaussion 10050469 2017-01-11T15:46:19Z 2017-01-11T15:46:37Z MEMBER

Note that the recommended to build data arrays is to specify the dimensions names explicitly:

In [11]: xr.DataArray(np.zeros([1, 2, 3]), {'x': [1], 'y': [1, 2], 'z': [1, 2, 3]}, dims=['x', 'y', 'z']) Out[11]: <xarray.DataArray (x: 1, y: 2, z: 3)> array([[[ 0., 0., 0.], [ 0., 0., 0.]]]) Coordinates: * y (y) int64 1 2 * z (z) int64 1 2 3 * x (x) int64 1

on master, failing to do so results in a FutureWarning (which is the important message, but gets lost in the traceback) and then in a ValueError (which might be confusing):

` In [12]: xr.DataArray(np.zeros([1, 2, 3]), {'x': [1], 'y': [1, 2], 'z': [1, 2, 3]}) /home/mowglie/.pyvirtualenvs/py3/bin/ipython:1: FutureWarning: inferring DataArray dimensions from dictionary likecoordshas been deprecated. Use an explicit list ofdims`` instead. #!/home/mowglie/.pyvirtualenvs/py3/bin/python3


ValueError Traceback (most recent call last) <ipython-input-12-501c20b8b785> in <module>() ----> 1 xr.DataArray(np.zeros([1, 2, 3]), {'x': [1], 'y': [1, 2], 'z': [1, 2, 3]})

/home/mowglie/Documents/git/xarray/xarray/core/dataarray.py in init(self, data, coords, dims, name, attrs, encoding, fastpath) 219 220 data = as_compatible_data(data) --> 221 coords, dims = _infer_coords_and_dims(data.shape, coords, dims) 222 variable = Variable(dims, data, attrs, encoding, fastpath=True) 223

/home/mowglie/Documents/git/xarray/xarray/core/dataarray.py in _infer_coords_and_dims(shape, coords, dims) 83 raise ValueError('conflicting sizes for dimension %r: ' 84 'length %s on the data but length %s on ' ---> 85 'coordinate %r' % (d, sizes[d], s, k)) 86 87 assert_unique_multiindex_level_names(new_coords)

ValueError: conflicting sizes for dimension 'y': length 1 on the data but length 2 on coordinate 'y' ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Problem with creating coords by dict 199816142

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