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 834273555,MDU6SXNzdWU4MzQyNzM1NTU=,5048,"Ability to rename items inside a coordinate, matching pandas rename() functionality",9399446,closed,0,,,6,2021-03-18T00:15:04Z,2022-04-18T15:52:31Z,2022-04-18T15:52:30Z,NONE,,,,"I have by necessity been converting a bunch of code that used pandas Panels to xarray, but I seem to have hit the fact that the xarray ""renaming"" functionality is not, in fact, related at all to the pandas ""rename,"" and there appears to be no functionality for the latter in xarray. **Describe the solution you'd like** I want to be able to rename specific items _inside_ of a coordinate, which for 2D DataArrays is analogous to renaming a column in a pandas DataFrame. For example, let's say I have the following DataArray in variable `da`: ``` da = xr.DataArray(np.random.randn(3, 5), dims=['one', 'two'], coords={'one': [1, 2, 3], 'two': ['a', 'b', 'c', 'dd', 'e']}) ``` Gives me ``` array([[-0.06079764, -0.54747953, 0.30818265, -1.66491362, 0.73121399], [-1.0309981 , 1.54785819, -1.23288457, 0.30912773, 1.24241736], [-0.5355933 , 0.08441669, 0.70498245, 0.1723775 , -1.06150325]]) Coordinates: * one (one) int32 1 2 3 * two (two)