issues: 264517839
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
264517839 | MDU6SXNzdWUyNjQ1MTc4Mzk= | 1625 | Option for arithmetics to ignore nans created by alignment | 6213168 | closed | 0 | 3 | 2017-10-11T09:33:34Z | 2019-07-11T09:48:07Z | 2019-07-11T09:48:07Z | MEMBER | Can anybody tell me if there is anybody who benefits from this behaviour? I can't think of any good use cases. ``` wallet = xarray.DataArray([50, 70], dims=['currency'], coords={'currency': ['EUR', 'USD']}) restaurant_bill = xarray.DataArray([30], dims=['currency'], coords={'currency': ['USD']}) with xarray.set_options(arithmetic_join="outer"): print(wallet - restaurant_bill) <xarray.DataArray (currency: 2)> array([ nan, 40.]) Coordinates: * currency (currency) object 'EUR' 'USD' ``` While it is fairly clear why it can be desirable to have Proposal:
- add a parameter to In theory the setting could be left as an opt-in as |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1625/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |