issues: 170084618
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
170084618 | MDU6SXNzdWUxNzAwODQ2MTg= | 954 | DataArray.copy() should create a mutable version of index coordinates | 1217238 | closed | 0 | 1 | 2016-08-09T05:25:54Z | 2019-02-26T02:28:23Z | 2019-02-26T02:28:23Z | MEMBER | It currently does not, which makes it tricky to mutate coordinates: ``` In [38]: ds = xr.Dataset(coords={'x': range(3)}) In [40]: ds.x.copy() Out[40]: <xarray.DataArray 'x' (x: 3)> array([0, 1, 2]) Coordinates: * x (x) int64 0 1 2 In [41]: other = ds.x.copy() In [42]: other[0] = 999 TypeError: Coordinate values cannot be modified ``` |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/954/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |