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/1314#issuecomment-464976969,https://api.github.com/repos/pydata/xarray/issues/1314,464976969,MDEyOklzc3VlQ29tbWVudDQ2NDk3Njk2OQ==,1217238,2019-02-19T04:23:14Z,2019-02-19T04:23:14Z,MEMBER,"This was implemented: ``` In [3]: np.array(xarray.Dataset()) --------------------------------------------------------------------------- TypeError Traceback (most recent call last) in () ----> 1 np.array(xarray.Dataset()) ~/dev/xarray/xarray/core/dataset.py in __array__(self, dtype) 1030 1031 def __array__(self, dtype=None): -> 1032 raise TypeError('cannot directly convert an xarray.Dataset into a ' 1033 'numpy array. Instead, create an xarray.DataArray ' 1034 'first, either with indexing on the Dataset or by ' TypeError: cannot directly convert an xarray.Dataset into a numpy array. Instead, create an xarray.DataArray first, either with indexing on the Dataset or by invoking the `to_array()` method. ```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,215602915