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 694876170,MDExOlB1bGxSZXF1ZXN0NDgxMTk1NTM3,4411,Fix incorrect legend labels for Dataset.plot.scatter,4687996,closed,0,,,0,2020-09-07T08:48:38Z,2020-09-10T18:48:12Z,2020-09-10T18:48:11Z,CONTRIBUTOR,,0,pydata/xarray/pulls/4411," - [x] Closes #4126 - [x] Tests added - [x] Passes `isort . && black . && mypy . && flake8` - [x] User visible changes (including notable bug fixes) are documented in `whats-new.rst` ","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/4411/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull 381518663,MDExOlB1bGxSZXF1ZXN0MjMxNDY3Nzkw,2556,Add transpose_coords option to DataArray.transpose,4687996,closed,0,,,11,2018-11-16T09:36:13Z,2019-05-21T17:38:07Z,2019-05-21T17:37:55Z,CONTRIBUTOR,,0,pydata/xarray/pulls/2556," - [x] Closes #1856 - [x] Tests added (for all bug fixes or enhancements) - [x] Fully documented, including `whats-new.rst` for all changes and `api.rst` for new API I've added the option `transpose_coords` to `DataArray.transpose` as described in #1856. It's `False` by default, as it breaks a couple of tests otherwise (`TestConcatDataset.test_concat`, `test_apply_output_core_dimension` and `test_dot`). I'm not sure whether fixing these tests to work with the new behavior should be part of the PR. ","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/2556/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,,13221727,pull 291485366,MDU6SXNzdWUyOTE0ODUzNjY=,1856,Option to make DataArray.transpose also transpose coords,4687996,closed,0,,,3,2018-01-25T08:20:11Z,2019-05-21T17:37:55Z,2019-05-21T17:37:55Z,CONTRIBUTOR,,,,"I've noticed that `Dataset.transpose` transposes the coordinates while `DataArray.transpose` does not. Example: import xarray as xr import numpy as np X_da = xr.DataArray( np.random.random((100, 10)), coords={'coord_1': (['sample', 'feature'], np.ones((100, 10)))}, dims=('sample', 'feature') ) In []: X_da.transpose().coord_1.dims Out[]: ('sample', 'feature') X_ds = xr.Dataset( {'var_1': (['sample', 'feature'], np.random.random((100, 10)))}, coords={'coord_1': (['sample', 'feature'], np.ones((100, 10)))}, ) In []: X_ds.transpose().coord_1.dims Out[]: ('feature', 'sample') This behaviour is probably intentional, but there are cases where I'd like `DataArray.transpose` to also transpose the coordinates. As a workaround, I have to convert to a Dataset, transpose and convert back. I was thinking that `DataArray.transpose` could accept a keyword argument `transpose_coords` which would be `False` by default. I could work on a PR implementing this behavior if it's desired.","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/1856/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue