id,node_id,number,title,user,state,locked,assignee,milestone,comments,created_at,updated_at,closed_at,author_association,active_lock_reason,draft,pull_request,body,reactions,performed_via_github_app,state_reason,repo,type 400678252,MDU6SXNzdWU0MDA2NzgyNTI=,2689,[Feature Request] Dataset.loc should accept comparisons with a contained DataArray as key,9658781,closed,0,,,5,2019-01-18T11:06:50Z,2019-01-22T18:12:23Z,2019-01-22T18:12:00Z,CONTRIBUTOR,,,,"Hey xarray maintainers, first of all, I love this repository! Thanks for all your effort. I have a feature request for the .loc function of the Dataset class. I think it would be beneficial to allow comparisons with DataArrays as keys for the loc function. Obviously, this only works for DataArrays which contain the same dimensions or more than the indexer. But e.g. in the weather dataset used as the example in the docs, it would allow one to filter precipitation and temperature by longitude or latitude, or precipitation by temperature. I started implementing it, cause I required it for another use case. I would be happy to integrate it to xarray, if it is of interest. Cheers, Jendrik","{""url"": ""https://api.github.com/repos/pydata/xarray/issues/2689/reactions"", ""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,completed,13221727,issue