html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/3470#issuecomment-573964243,https://api.github.com/repos/pydata/xarray/issues/3470,573964243,MDEyOklzc3VlQ29tbWVudDU3Mzk2NDI0Mw==,2448579,2020-01-14T02:06:30Z,2020-01-14T02:06:30Z,MEMBER,"> I think what we probably want to do is mark variables used in indexes as having immutable data in xarray's data model, and raise an error for attempts to modify them in-place.

How do I implement this?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,514792972
https://github.com/pydata/xarray/issues/3470#issuecomment-547995641,https://api.github.com/repos/pydata/xarray/issues/3470,547995641,MDEyOklzc3VlQ29tbWVudDU0Nzk5NTY0MQ==,2448579,2019-10-30T16:31:50Z,2019-10-30T16:31:50Z,MEMBER,"`ds.time.values = pd.to_datetime(ds.time.values) + pd.DateOffset(months=2)`
By doing this, `ds.indexes[""time""]` is not updated. 

@folmerkrikken How about `ds.assign_coords(time=pd.to_datetime(ds.time.values) + pd.DateOffset(months=2))`

@shoyer I've seen this type of code elsewhere: direct assignment to `.values` and `.data` of a coordinate variable which then leads to inconsistent objects and confusing behaviour. Is there something we can do to alert users?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,514792972