issues: 466815556
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 466815556 | MDU6SXNzdWU0NjY4MTU1NTY= | 3094 | REGRESSION: copy(deep=True) casts unicode indices to object | 6213168 | closed | 0 | 3 | 2019-07-11T10:46:28Z | 2019-08-02T14:02:50Z | 2019-08-02T14:02:50Z | MEMBER | Dataset.copy(deep=True) and DataArray.copy (deep=True/False) accidentally cast IndexVariable's with dtype='<U*' to object. Same applies to copy.copy() and copy.deepcopy(). This is a regression in xarray >= 0.12.2. xarray 0.12.1 and earlier are unaffected. ``` In [1]: ds = xarray.Dataset( ...: coords={'x': ['foo'], 'y': ('x', ['bar'])}, ...: data_vars={'z': ('x', ['baz'])}) In [2]: ds In [3]: ds.copy() In [4]: ds.copy(deep=True) In [5]: ds.z In [6]: ds.z.copy() In [7]: ds.z.copy(deep=True) |
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3094/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |