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/3820#issuecomment-594014351,https://api.github.com/repos/pydata/xarray/issues/3820,594014351,MDEyOklzc3VlQ29tbWVudDU5NDAxNDM1MQ==,8833517,2020-03-03T15:38:05Z,2020-03-03T15:38:05Z,CONTRIBUTOR,Waiting a few more months until it will definitely not be a problem for anyone seems fair to me :+1: ,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,574097799
https://github.com/pydata/xarray/issues/3820#issuecomment-593874263,https://api.github.com/repos/pydata/xarray/issues/3820,593874263,MDEyOklzc3VlQ29tbWVudDU5Mzg3NDI2Mw==,8833517,2020-03-03T10:20:08Z,2020-03-03T10:20:08Z,CONTRIBUTOR,"I think that inferring dimension-names from the `coords`-dict is the most intuitive way to define a DataArray.
Passing a dictionary for `coords` is in my opinion the clearest way to indicate which coordinates belong to which dimension, so then why do I have to specify the same dimension names again?
An example of how I create them from my current project:
```
values = xr.DataArray(
values,
coords={'n_high': n_highs,
'n_low': n_lows,
'rep': repetitions,
'model': models,
'idx': range(n_test_samples),},
dims=['n_high', 'n_low', 'rep', 'model', 'idx'], <-- repeated dim names
attrs=attributes,
)
```
If you expect almost everyone to use CPython or 3.7+ anyway, then I don't actually see any drawbacks, while it would regularly make code shorter and less repetitive.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,574097799
https://github.com/pydata/xarray/issues/3820#issuecomment-593673608,https://api.github.com/repos/pydata/xarray/issues/3820,593673608,MDEyOklzc3VlQ29tbWVudDU5MzY3MzYwOA==,8833517,2020-03-02T23:18:47Z,2020-03-02T23:18:47Z,CONTRIBUTOR,"@max-sixty Thanks for the tip. In the end it meant just changing the last line on `dims`. The paragraph on the `coords` argument is still valid after all.
On a related note: according to #727 (PR #993), this was deprecated since key-order in dictionaries was arbitrary at the time of that issue. However, their order is fixed since Python3.7, as noted in [the documentation](https://docs.python.org/3/library/stdtypes.html#dict.values):
> _Changed in version 3.7_: Dictionary order is guaranteed to be insertion order. This behavior was an implementation detail of CPython from 3.6.
I guess it's still too soon to 'un-deprecate' this behavior again? 👼 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,574097799