issues: 326344778
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
326344778 | MDU6SXNzdWUzMjYzNDQ3Nzg= | 2183 | converting int vars to floats when I where the enclosing ds? | 1778852 | open | 0 | 5 | 2018-05-25T00:48:43Z | 2022-04-09T02:14:23Z | NONE | Code Sample```python test_ds = xr.Dataset() test_ds['var1'] = xr.DataArray(np.arange(5)) test_ds['var2'] = xr.DataArray(np.ones(5)) assert(test_ds['var1'].dtype == np.int64) assert(test_ds.where(test_ds['var2'] == 1)['var1'].dtype == np.int64) ``` Problem descriptionSecond assert fails, which is a bit strange I think. Is that intended? If so, whats the reasoning? Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/2183/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |