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/4013#issuecomment-622006384,https://api.github.com/repos/pydata/xarray/issues/4013,622006384,MDEyOklzc3VlQ29tbWVudDYyMjAwNjM4NA==,42118783,2020-04-30T17:51:22Z,2020-04-30T17:51:22Z,NONE,"Very helpful resources, thank you all!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,608536405 https://github.com/pydata/xarray/issues/4013#issuecomment-621367736,https://api.github.com/repos/pydata/xarray/issues/4013,621367736,MDEyOklzc3VlQ29tbWVudDYyMTM2NzczNg==,42118783,2020-04-29T17:55:06Z,2020-04-29T17:55:54Z,NONE,"@jthielen is there a better place to ask these questions in the future? I like the the package quite a bit, but sometimes I struggle to answer basic questions like this from the documentation alone (ex: [this page ](http://xarray.pydata.org/en/stable/generated/xarray.where.html)could maybe use a few words explaining the examples?). On the other hand I asked here because I wasn't sure how much traction my question would get on stack exchange.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,608536405 https://github.com/pydata/xarray/issues/4013#issuecomment-620833480,https://api.github.com/repos/pydata/xarray/issues/4013,620833480,MDEyOklzc3VlQ29tbWVudDYyMDgzMzQ4MA==,42118783,2020-04-28T20:21:05Z,2020-04-28T20:21:05Z,NONE,"Sounds like this is what I’m looking for, I’ll try it out soon thank you! I wasn’t aware that where had a drop option","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,608536405 https://github.com/pydata/xarray/issues/2461#issuecomment-557325914,https://api.github.com/repos/pydata/xarray/issues/2461,557325914,MDEyOklzc3VlQ29tbWVudDU1NzMyNTkxNA==,42118783,2019-11-21T23:57:15Z,2019-11-21T23:57:15Z,NONE,Right that's actually desired behavior to begin with so this works out,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,366626025 https://github.com/pydata/xarray/issues/2461#issuecomment-557324294,https://api.github.com/repos/pydata/xarray/issues/2461,557324294,MDEyOklzc3VlQ29tbWVudDU1NzMyNDI5NA==,42118783,2019-11-21T23:50:01Z,2019-11-21T23:50:01Z,NONE,"This worked perfectly, thanks so much!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,366626025 https://github.com/pydata/xarray/issues/2461#issuecomment-557321322,https://api.github.com/repos/pydata/xarray/issues/2461,557321322,MDEyOklzc3VlQ29tbWVudDU1NzMyMTMyMg==,42118783,2019-11-21T23:37:07Z,2019-11-21T23:41:09Z,NONE,"This also doesn't work feeding y and z as `data.y.values` and `data.z.values` which are 1d arrays. Ultimately merge to another dataset with the same coordinates. Seems like there's something obvious I'm missing here but I haven't been able to figure out what it is. Ah I see in this example I need a dataset that's 3x3, let me fix the example and see if it's still relevant to my issue","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,366626025 https://github.com/pydata/xarray/issues/2461#issuecomment-557319180,https://api.github.com/repos/pydata/xarray/issues/2461,557319180,MDEyOklzc3VlQ29tbWVudDU1NzMxOTE4MA==,42118783,2019-11-21T23:29:52Z,2019-11-21T23:30:31Z,NONE,"@dcherian not quite because I want z and y to both have the star next to them (or bolded in your screenshot) so that they're proper coordinates. I likewise thought that the answer would be as simple as: ``` data=pd.DataFrame({'x': [0, 1, 2], 'y': ['a', 'b', 'c'],'z': ['a', 'b', 'c']}) xr.DataArray(data.x, coords={'y': data.y, 'x':data.z}) ``` But again, I haven't gotten anywhere this way either and getting the error `ValueError: coordinate y has dimensions ('y',), but these are not a subset of the DataArray dimensions ('dim_0',)` ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,366626025 https://github.com/pydata/xarray/issues/2461#issuecomment-557312857,https://api.github.com/repos/pydata/xarray/issues/2461,557312857,MDEyOklzc3VlQ29tbWVudDU1NzMxMjg1Nw==,42118783,2019-11-21T23:06:34Z,2019-11-21T23:07:32Z,NONE,"@fujiisoup This method works when trying to add a single coordinate, but what about when you're trying to add multiple coordinates? Example: ``` import xarray as xr ds = xr.Dataset({'x': ('i', [0, 1, 2]), 'y': ('i', ['a', 'b', 'c']),'z': ('i', ['a', 'b', 'c'])}) ds= ds.set_coords(['y','z']) ds.swap_dims({'i':'y','i':'z'}) #doesn't work ds = xr.Dataset({'x': ('i', [0, 1, 2]), 'y': ('i', ['a', 'b', 'c']),'z': ('i', ['a', 'b', 'c'])}) ds= ds.set_coords('y') ds=ds.swap_dims({'i':'y'}) ds.set_coords('z') #doesn't work either ``` Is there any reason that this is the default behavior? This is a bit frustrating to work with after creating an xarray dataset from pandas.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,366626025