issues: 414277715
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
414277715 | MDU6SXNzdWU0MTQyNzc3MTU= | 2786 | groupby with non-scalar coordinate | 1277781 | closed | 0 | 1 | 2019-02-25T19:52:29Z | 2019-10-11T15:55:36Z | 2019-10-11T15:55:36Z | CONTRIBUTOR | Code Sample```python import numpy as np import xarray as xr def noop(da): return da def expd(da): return da.expand_dims(['A']) na=np.array([[1,2],[3,4]]) xa=xr.DataArray(na,dims=['A','B']) This works:r1 = xa.groupby('A').apply(noop) print("!!!!") This doesn't:r2 = xa.groupby('A').apply(expd) ``` Problem descriptionIs this intended behavior? The reason I would need this is to be able to increase the size of each group. Expected OutputI expect r1 to be equivalent to r2 |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2786/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |