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/1317#issuecomment-337959059,https://api.github.com/repos/pydata/xarray/issues/1317,337959059,MDEyOklzc3VlQ29tbWVudDMzNzk1OTA1OQ==,1217238,2017-10-19T16:14:54Z,2017-10-19T16:14:54Z,MEMBER,"> IMO, the easiest way to do this would be to change these methods into top-level functions which can take any dict or iterable of datarrays. :+1: for a function or class based interface if that makes sense. Can you share a few examples of what using your proposed API would look like?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,216215022 https://github.com/pydata/xarray/issues/1317#issuecomment-288577529,https://api.github.com/repos/pydata/xarray/issues/1317,288577529,MDEyOklzc3VlQ29tbWVudDI4ODU3NzUyOQ==,1217238,2017-03-23T00:06:34Z,2017-03-23T00:06:34Z,MEMBER,"I've written similar code in the past as well, so I would be pretty supportive of adding a utility class for this. Actually one of my colleagues wrote a [virtually identical class](https://github.com/tensorflow/tensorflow/blob/4e18625c55afdbe50e922a70a12df05320e387e0/tensorflow/contrib/labeled_tensor/python/ops/sugar.py#L29) for our xarray equivalent in TensorFlow -- take a look at it for some possible alternative API options. For xarray, `.stack()` and `.to_array()`, or `.to_dataframe()` can do most of the heavy lifting instead of manually reshaping. Thanks for the pointer to xlearn, too! ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,216215022