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/2847#issuecomment-475918645,https://api.github.com/repos/pydata/xarray/issues/2847,475918645,MDEyOklzc3VlQ29tbWVudDQ3NTkxODY0NQ==,6628425,2019-03-24T01:09:25Z,2019-03-24T01:09:25Z,MEMBER,"Thanks for the issue. I think the main problem is that we currently do not have a way of saving an `IntervalIndex`, which `groupby_bins` produces, to a netCDF file:
```
In [7]: out.indexes['data_bins']
Out[7]:
IntervalIndex([(0, 2], (2, 4], (4, 6], (6, 8]],
closed='right',
dtype='interval[int64]')
```
One way to work around this in the meantime is to redefine the bins coordinate before saving things to a file. See @jhamman's answer to a [related StackOverflow question](https://stackoverflow.com/questions/54848671/using-xarray-groupby-bins-results-in-coordinates-that-are-an-object-and-cant-be) for an example.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,424538928