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/1726#issuecomment-346106494,https://api.github.com/repos/pydata/xarray/issues/1726,346106494,MDEyOklzc3VlQ29tbWVudDM0NjEwNjQ5NA==,3621629,2017-11-21T17:47:44Z,2017-11-21T19:41:46Z,CONTRIBUTOR,"I dug it a bit further. Contrary to what I said numpy is fine. If `x` is a DataArray ```python np.array(x.mean()) # -> array(2.0) np.array([x.mean()]) # -> array([2.0]) np.array(x) # -> ok ``` `pandas` behavior is more surprising ```python pd.Series(2) # ok pd.Series(x.mean()) # -> TypeError: len() of unsized object pd.Series([x.mean()]) # -> dtype=object # however for 1D x pd.Series(x) # dtype is fine ``` Something looks a bit odd to me. But it looks more like a pandas issue","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,274996832 https://github.com/pydata/xarray/issues/1726#issuecomment-345790125,https://api.github.com/repos/pydata/xarray/issues/1726,345790125,MDEyOklzc3VlQ29tbWVudDM0NTc5MDEyNQ==,3621629,2017-11-20T18:47:12Z,2017-11-20T18:47:12Z,CONTRIBUTOR,"Thanks for your answer. I'll try to find a good spot in the doc to write a line or two about this.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,274996832