issues: 407085814
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
407085814 | MDU6SXNzdWU0MDcwODU4MTQ= | 2748 | Inconsistent name behavior in masking | 6164157 | closed | 0 | 2 | 2019-02-06T05:25:47Z | 2019-02-11T19:05:40Z | 2019-02-11T19:05:40Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possibleConsider the following 4 ways to mask an ```python import xarray as xr ds=xr.Dataset({'a': (['x'], range(10))}, coords={'x': range(10)}) ds['msk']=ds.a>5 msk=ds.a>5 v1=ds.a.where(ds.a>5) v2=ds.a.where(msk) v3=ds.where(ds.msk).a v4=ds.a.where(ds.msk) ', '.join(str(v.name) for v in (v1, v2, v3, v4)) Problem descriptionAll Is this behavior intentional? It seems inconsistent to me that Expected OutputI would expect Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2748/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |