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/6196#issuecomment-1450762730,https://api.github.com/repos/pydata/xarray/issues/6196,1450762730,IC_kwDOAMm_X85WeOHq,2448579,2023-03-01T19:54:47Z,2023-03-01T19:54:47Z,MEMBER,"Yes when you index out a single location `z` becomes a scalar (similar with numpy). if you want to keep the dimension use `.sel(z=['0'])`. > I expect that a singleton coordinate of a dataset not to be a coordinate of other coordinates present in the dataset Xarray only checks if a coordinate variable's dimensions are a subset of the extracted DataArray dimensions. for a scalar, `.dims` is an empty set, and an empty set is a subset of every set.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1115166039