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/1646#issuecomment-356661287,https://api.github.com/repos/pydata/xarray/issues/1646,356661287,MDEyOklzc3VlQ29tbWVudDM1NjY2MTI4Nw==,1217238,2018-01-10T16:44:00Z,2018-01-10T16:44:00Z,MEMBER,"> What is the desired behaviour in this case viz. do we preserve dimension name new_dim or assign new name stat? Oh, this is trickier than I thought! The challenge is that once you make the DataArray, there is no good way to know if a default dimension name like `'dim_0'` was intentional or not. The way to handle this currently is to pass a 1-dimensional `xarray.Variable` object for the `dim` argument. These don't have separate names, so there's no ambiguity: ``` In [5]: xarray.concat([xarray.DataArray(1), xarray.DataArray(2)], dim=xarray.Variable('x', [3, 4])) Out[5]: array([1, 2]) Coordinates: * x (x) int64 3 4 ``` But this is a little verbose. Potentially we could call `xarray.as_variable()` on tuple inputs (like in the Dataset constructor) so `dim=('x', [3, 4])` works.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,267521588 https://github.com/pydata/xarray/issues/1646#issuecomment-338576932,https://api.github.com/repos/pydata/xarray/issues/1646,338576932,MDEyOklzc3VlQ29tbWVudDMzODU3NjkzMg==,1217238,2017-10-23T07:55:59Z,2017-10-23T07:55:59Z,MEMBER,This is the location of the helper function that parsing the `dim` argument: https://github.com/pydata/xarray/blob/9763a66e0e4675e7adc3fff3830c62f0e31a2bb3/xarray/core/combine.py#L123,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,267521588 https://github.com/pydata/xarray/issues/1646#issuecomment-338576290,https://api.github.com/repos/pydata/xarray/issues/1646,338576290,MDEyOklzc3VlQ29tbWVudDMzODU3NjI5MA==,1217238,2017-10-23T07:53:22Z,2017-10-23T07:53:22Z,MEMBER,"Agreed, this should definitely work! (I think the fact that it doesn't is probably related to the relatively recent change that made coordinate labels along dimensions optional.)","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,267521588