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/4290#issuecomment-669204458,https://api.github.com/repos/pydata/xarray/issues/4290,669204458,MDEyOklzc3VlQ29tbWVudDY2OTIwNDQ1OA==,12237157,2020-08-05T13:48:55Z,2020-08-05T13:48:55Z,CONTRIBUTOR,"> For those who think ` bool(xr.Dataset(dict(x=False)))` should evaluate to `False`, what do you think `dict(x=False)` should evaluate to? good point > IIUC, this is somewhat of an edge case — it's only possible to coerce `DataArray` to bool when there's exactly one element. (Not that we shouldn't resolve) I now understand the underlying problem better with your comments. My expectations were too naive about it. I cannot evaluate the consequences of changing this. I close this issue and hopefully users having this problem in the future will find this issue.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,668717850 https://github.com/pydata/xarray/issues/4290#issuecomment-666380379,https://api.github.com/repos/pydata/xarray/issues/4290,666380379,MDEyOklzc3VlQ29tbWVudDY2NjM4MDM3OQ==,12237157,2020-07-30T13:56:30Z,2020-07-30T14:13:24Z,CONTRIBUTOR,"currently ```python if (xrobject > 10).any(): raise ValueError('blabla') ``` depends on whether xrobject is xr.DataArray or xr.Dataset.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,668717850 https://github.com/pydata/xarray/issues/4290#issuecomment-666370889,https://api.github.com/repos/pydata/xarray/issues/4290,666370889,MDEyOklzc3VlQ29tbWVudDY2NjM3MDg4OQ==,12237157,2020-07-30T13:39:55Z,2020-07-30T13:39:55Z,CONTRIBUTOR,"thanks for the explanation. but from a naive user perspective, ```python bool(xr.DataArray(False).to_dataset(name='var')) # False bool(xr.DataArray(True).to_dataset(name='var')) # True bool(xr.DataArray(False)) # False bool(xr.DataArray(True)) # True ``` would be nice.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,668717850