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 1923513686,I_kwDOAMm_X85ypn1W,8265,Don't emit a warning with `.rename` if it is a no-op,19758978,closed,0,,,3,2023-10-03T07:41:36Z,2023-10-04T20:24:51Z,2023-10-04T20:24:51Z,CONTRIBUTOR,,,,"### What is your issue? When running this code: ``` python import xarray as xr ds = xr.tutorial.load_dataset(""rasm"") ds.rename({""time"": ""time""}) ``` I will get the following warning: ``` python-traceback UserWarning: rename 'time' to 'time' does not create an index anymore. Try using swap_dims instead or use set_index after rename to create an indexed coordinate. ds.rename({""time"": ""time""}) ``` ","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/8265/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue