issues: 283345586
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 283345586 | MDU6SXNzdWUyODMzNDU1ODY= | 1792 | Comparison with masked array yields object-array with nans for masked values | 500246 | open | 0 | 3 | 2017-12-19T19:37:13Z | 2020-10-11T13:34:25Z | CONTRIBUTOR | Code Sample, a copy-pastable example if possible``` $ cat mwe.py !/usr/bin/env python3.6import xarray import numpy da = xarray.DataArray(numpy.arange(5)) ma = numpy.ma.masked_array(numpy.arange(5), [True, False, False, False, True]) print(da>ma) $ ./mwe.py <xarray.DataArray (dim_0: 5)> array([nan, False, False, False, nan], dtype=object) Dimensions without coordinates: dim_0 ``` Problem descriptionA comparison between a Expected OutputI would expect the masked array to be dropped (which it is) and an array to be returned equivalent to the comparison
Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/1792/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
13221727 | issue |