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/3575#issuecomment-558764219,https://api.github.com/repos/pydata/xarray/issues/3575,558764219,MDEyOklzc3VlQ29tbWVudDU1ODc2NDIxOQ==,1197350,2019-11-26T18:40:03Z,2019-11-26T18:40:03Z,MEMBER,"Right that’s what I did too. But it’s a hack! Sent from my iPhone > On Nov 26, 2019, at 1:25 PM, Deepak Cherian wrote: > >  > p.s. In this case the default assumption, that the output would be the same shape and dtype as the input, would have been fine. > > I've been sticking this at the top when necessary: > > if sum(ds.shape) == 0: > return ds > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub, or unsubscribe. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,528884925 https://github.com/pydata/xarray/issues/3575#issuecomment-558747568,https://api.github.com/repos/pydata/xarray/issues/3575,558747568,MDEyOklzc3VlQ29tbWVudDU1ODc0NzU2OA==,1197350,2019-11-26T17:57:09Z,2019-11-26T17:57:09Z,MEMBER,"p.s. In this case the default assumption, that the output would be the same shape and dtype as the input, would have been fine.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,528884925