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/5387#issuecomment-849897412,https://api.github.com/repos/pydata/xarray/issues/5387,849897412,MDEyOklzc3VlQ29tbWVudDg0OTg5NzQxMg==,22245117,2021-05-27T19:51:41Z,2021-05-27T19:51:41Z,CONTRIBUTOR,"All tests are passing with `dtype='O'`, although I'm not fully following why `asarray` is needed in the first place. I'll open a PR so we can start from there...","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811 https://github.com/pydata/xarray/issues/5387#issuecomment-849887667,https://api.github.com/repos/pydata/xarray/issues/5387,849887667,MDEyOklzc3VlQ29tbWVudDg0OTg4NzY2Nw==,5635139,2021-05-27T19:35:07Z,2021-05-27T19:35:07Z,MEMBER,"> `np.asarray(key, dtype='O')` fixes the bug, not sure if there's any downside Interesting! It might be worth seeing whether anything breaks.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811 https://github.com/pydata/xarray/issues/5387#issuecomment-849818227,https://api.github.com/repos/pydata/xarray/issues/5387,849818227,MDEyOklzc3VlQ29tbWVudDg0OTgxODIyNw==,22245117,2021-05-27T17:41:37Z,2021-05-27T17:41:37Z,CONTRIBUTOR,"`np.asarray(key, dtype='O')` fixes the bug, not sure if there's any downside","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811 https://github.com/pydata/xarray/issues/5387#issuecomment-849815977,https://api.github.com/repos/pydata/xarray/issues/5387,849815977,MDEyOklzc3VlQ29tbWVudDg0OTgxNTk3Nw==,22245117,2021-05-27T17:37:52Z,2021-05-27T17:37:52Z,CONTRIBUTOR,"I think `np.asarray` is converting everything to strings: https://github.com/pydata/xarray/blob/a6a1e48b57499f91db7e7c15593aadc7930020e8/xarray/core/dataset.py#L1488 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811 https://github.com/pydata/xarray/issues/5387#issuecomment-849809901,https://api.github.com/repos/pydata/xarray/issues/5387,849809901,MDEyOklzc3VlQ29tbWVudDg0OTgwOTkwMQ==,2448579,2021-05-27T17:27:56Z,2021-05-27T17:27:56Z,MEMBER,`ds[1]` and `ds[[1]]` works too,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811 https://github.com/pydata/xarray/issues/5387#issuecomment-849789107,https://api.github.com/repos/pydata/xarray/issues/5387,849789107,MDEyOklzc3VlQ29tbWVudDg0OTc4OTEwNw==,14808389,2021-05-27T16:54:38Z,2021-05-27T16:54:38Z,MEMBER,"that looks like a bug: accessing the variables separately *is* possible. Somewhat related, we seem to have broken the `repr` of `ds.variables`.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,903983811