home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 245468219

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
245468219 MDU6SXNzdWUyNDU0NjgyMTk= 1487 `axis` keyword ignored when applying `np.squeeze` to `DataArray` 25275251 closed 0     4 2017-07-25T16:59:19Z 2018-02-20T06:27:12Z 2018-02-20T06:27:12Z NONE      

Thank you all for creating xarray, I'm a new user and I love it!

I believe I came across a bug. It appears the axis keyword is ignored when applying np.squeeze to a DataArray. Here is an illustration:

``` import numpy as np import xarray as xr

test = np.random.random((1,10,1)) np.squeeze(test, axis=0).shape

(10, 1)

np.squeeze(xr.DataArray(test), axis=0).shape

(10,)

np.version

'1.13.0'

xr.version

'0.9.6'

```

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1487/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 1 row from issues_id in issues_labels
  • 4 rows from issue in issue_comments
Powered by Datasette · Queries took 80.158ms · About: xarray-datasette