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/1019#issuecomment-251238760,https://api.github.com/repos/pydata/xarray/issues/1019,251238760,MDEyOklzc3VlQ29tbWVudDI1MTIzODc2MA==,17701232,2016-10-03T21:54:22Z,2016-10-03T21:54:38Z,NONE,"@rabernat @shoyer thank you very much - (at least for my purposes) this appears to be working well. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250773817,https://api.github.com/repos/pydata/xarray/issues/1019,250773817,MDEyOklzc3VlQ29tbWVudDI1MDc3MzgxNw==,17701232,2016-09-30T15:24:31Z,2016-09-30T15:24:31Z,NONE,"Thanks @shoyer and @rabernat . @gidden and I may have a go next week. Otherwise if someone wants to jump in, I made a notebook to test/demonstrate the issue. [groupby_bins_test_nb.zip](https://github.com/pydata/xarray/files/503278/groupby_bins_test_nb.zip) ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250618039,https://api.github.com/repos/pydata/xarray/issues/1019,250618039,MDEyOklzc3VlQ29tbWVudDI1MDYxODAzOQ==,1217238,2016-09-29T23:11:34Z,2016-09-29T23:11:34Z,MEMBER,"We actually already have some similar for ensuring that all resampled bins appear (see `GroupBy._maybe_restore_empty_groups`). If we set `full_index = binned.categories` in `GroupBy.__init__` I think that should take care of it. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250496630,https://api.github.com/repos/pydata/xarray/issues/1019,250496630,MDEyOklzc3VlQ29tbWVudDI1MDQ5NjYzMA==,17701232,2016-09-29T15:15:44Z,2016-09-29T15:15:44Z,NONE,"0.8.2 updated from conda a few days ago. I'll try the master. Thanks ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250494742,https://api.github.com/repos/pydata/xarray/issues/1019,250494742,MDEyOklzc3VlQ29tbWVudDI1MDQ5NDc0Mg==,1197350,2016-09-29T15:09:08Z,2016-09-29T15:09:12Z,MEMBER,"For now, can you just confirm what version of xarray you are using (`xarray.__version__`)? I'm not sure if #952 has been released yet, but if you are using the latest master, that should at least fix the sorting issue. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250492101,https://api.github.com/repos/pydata/xarray/issues/1019,250492101,MDEyOklzc3VlQ29tbWVudDI1MDQ5MjEwMQ==,17701232,2016-09-29T15:00:02Z,2016-09-29T15:00:02Z,NONE,"@rabernat I don't have much capability to help, but if any changes are made I am happy to help test this particular case. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250490528,https://api.github.com/repos/pydata/xarray/issues/1019,250490528,MDEyOklzc3VlQ29tbWVudDI1MDQ5MDUyOA==,1197350,2016-09-29T14:55:05Z,2016-09-29T14:55:05Z,MEMBER,"As for the empty bins, I can see how this would be useful. I suppose it is a bug. Curious what @shoyer thinks about this case... ","{""total_count"": 2, ""+1"": 2, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250487659,https://api.github.com/repos/pydata/xarray/issues/1019,250487659,MDEyOklzc3VlQ29tbWVudDI1MDQ4NzY1OQ==,1197350,2016-09-29T14:45:46Z,2016-09-29T14:45:46Z,MEMBER,"The sorting of bins should have been fixed in #952. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250486102,https://api.github.com/repos/pydata/xarray/issues/1019,250486102,MDEyOklzc3VlQ29tbWVudDI1MDQ4NjEwMg==,17701232,2016-09-29T14:40:43Z,2016-09-29T14:40:43Z,NONE,"So if I plot the current output as a bar chart/histogram, that bin interval will be skipped. For example if I did: `plt.plot(binns[0:-2], binned) #using left edges of the bins` I would get an error if a bin present in `binns` has been skipped in `binned`. I guess that perhaps there is a cleverer way of plotting the output data than this. This leads to more important questions: 1. Do you know the logic to the ordering of the binned data and the bin objects? In this example, the bins input is monotonically increasing, but the bin object does not correspond. e.g. ``` binns = [-100, -50, 0, 50, 50.00001, 100] array(['(0, 50]', '(-50, 0]', '(51, 100]', '(-100, -50]'], dtype=object) ``` 1. Does the order of output values in the summed array (`binned`) correspond to the input bins or the output bin object? If the latter, how do I reorder the data more in line with the monotonically increasing input bins array? Thanks ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119 https://github.com/pydata/xarray/issues/1019#issuecomment-250464887,https://api.github.com/repos/pydata/xarray/issues/1019,250464887,MDEyOklzc3VlQ29tbWVudDI1MDQ2NDg4Nw==,1197350,2016-09-29T13:25:10Z,2016-09-29T13:25:10Z,MEMBER,"Just to understand better, what is the advantage to having this empty bin? How would you use that feature? As is, the resulting Dataset can still be aligned with other bin objects that have different coordinates (i.e. non empty final bin). ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,179969119