issues: 301795163
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 301795163 | MDU6SXNzdWUzMDE3OTUxNjM= | 1952 | xarray.merge exception : invalid type promotion | 1997005 | closed | 0 | 4 | 2018-03-02T15:02:43Z | 2018-08-20T16:31:16Z | 2018-08-20T16:31:16Z | CONTRIBUTOR | Code Sample```python import xarray import pandas import numpy array1 = xarray.DataArray( [numpy.timedelta64('NaT')], dims=['time'], coords={'time': pandas.to_datetime(['2018-01-01'])}, name='foo' ) array2 = xarray.DataArray( [numpy.timedelta64(30, 's')], dims=['time'], coords={'time': pandas.to_datetime(['2018-01-02'])}, name='foo' ) xarray.merge([array1, array2]) ``` Problem descriptionMerging arrays with identical dtypes should work ... There's some issue with the It works with Work-around in the mean time :
Expected Output```python expected :xarray.DataArray( [numpy.timedelta64('NaT'), numpy.timedelta64(30, 's')], dims=['time'], coords={'time': pandas.to_datetime(['2018-01-01', '2018-01-02'])}, name='foo' ) ``` Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/1952/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |