home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

1 row where issue = 245468219 and user = 8441217 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

  • floriankrb · 1 ✖

issue 1

  • `axis` keyword ignored when applying `np.squeeze` to `DataArray` · 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
366242783 https://github.com/pydata/xarray/issues/1487#issuecomment-366242783 https://api.github.com/repos/pydata/xarray/issues/1487 MDEyOklzc3VlQ29tbWVudDM2NjI0Mjc4Mw== floriankrb 8441217 2018-02-16T14:01:20Z 2018-02-16T14:01:20Z CONTRIBUTOR

Yes, @shoyer is right : Looking at the numpy code, this array.squeeze(axis) -> array.squeeze() is happening. 1256 try: 1257 # First try to use the new axis= parameter 1258 return squeeze(axis=axis) 1259 except TypeError: 1260 # For backwards compatibility 1261 return squeeze()

I added the axis parameter in xarray and this fixed the problem.

``` PYTHONPATH=$HOME/sandbox/dev/xarray python -c 'import numpy as np ; import xarray as xr ; test = np.random.random((1,10,1)) ; print(np.squeeze(test, axis=0).shape); print(np.squeeze(xr.DataArray(test), axis=0).shape, np.version, xr.version) ' (10, 1) (10, 1) 1.13.1 0.10.0+dev64.gd554ece

```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  `axis` keyword ignored when applying `np.squeeze` to `DataArray` 245468219

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