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-332623355,https://api.github.com/repos/pydata/xarray/issues/1317,332623355,MDEyOklzc3VlQ29tbWVudDMzMjYyMzM1NQ==,2443309,2017-09-27T19:03:14Z,2017-09-27T19:03:14Z,MEMBER,I can see the use of a Dataset to_array/stack method that does not broadcast arrays. Feel free to open a PR and we'll take a look.,"{""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
https://github.com/pydata/xarray/issues/1317#issuecomment-288549282,https://api.github.com/repos/pydata/xarray/issues/1317,288549282,MDEyOklzc3VlQ29tbWVudDI4ODU0OTI4Mg==,10050469,2017-03-22T21:43:12Z,2017-03-22T21:43:12Z,MEMBER,"I personally have no opinion on the subject, but maybe @ajdawson wants to chime in (as the author of the [eofs](https://github.com/ajdawson/eofs) package which includes xarray support).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,216215022