issues: 773750763
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
773750763 | MDU6SXNzdWU3NzM3NTA3NjM= | 4727 | xr.testing.assert_equal does not test for dtype | 10194086 | open | 0 | 5 | 2020-12-23T13:14:41Z | 2021-07-04T04:08:51Z | MEMBER | In #4622 @toddrjen points out that ```python import numpy as np import xarray as xr import pandas as pd xr.testing.assert_equal( xr.DataArray(np.array(1, dtype=int)), xr.DataArray(np.array(1, dtype=float)) ) xr.testing.assert_equal( xr.DataArray(np.array(1, dtype=int)), xr.DataArray(np.array(1, dtype=object)) ) xr.testing.assert_equal( xr.DataArray(np.array("a", dtype=str)), xr.DataArray(np.array("a", dtype=object)) ) ``` This comes back to numpy, i.e. the following is True:
Depending on the situation one or the other is desirable or not. Thus, I would suggest to add a
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4727/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |