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/1269#issuecomment-280122805,https://api.github.com/repos/pydata/xarray/issues/1269,280122805,MDEyOklzc3VlQ29tbWVudDI4MDEyMjgwNQ==,1217238,2017-02-15T20:04:07Z,2017-02-15T20:04:07Z,MEMBER,"I think this could be done with minimal GroupBy subclasses to supply the default dimension argument for aggregation functions. All the machinery on groupby should already be there. On Wed, Feb 15, 2017 at 10:59 AM Daniel Rothenberg wrote: > @MaximilianR Oh, the interface is easy > enough to do, even maintaining backwards-compatibility (already have that > working). I was considering going the route done with GroupBy > > and the classes that compose it, like DatasetGroupBy > ... > basically, we just record the wanted resampling dimension and inject the > grouping/resampling operations we want. Also adds the ability to specialize > methods like .first() and .last(), which is done under the current > implementation. > > *But*.... if there's a simpler way, that might be preferable! > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > , or mute > the thread > > . > ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,207587161 https://github.com/pydata/xarray/issues/1269#issuecomment-280101839,https://api.github.com/repos/pydata/xarray/issues/1269,280101839,MDEyOklzc3VlQ29tbWVudDI4MDEwMTgzOQ==,5635139,2017-02-15T18:49:32Z,2017-02-15T18:49:32Z,MEMBER,">the only sticking point I've come across so far is how to have the resulting Data{Array,set}GroupBy object ""remember"" the resampling dimension I think an interface like `ds.resample(time='24H').mean()` would be much better. We could do that with a wrapper of `pd.TimeGrouper` that also had a `dim` field. Or inheritance 😨 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,207587161 https://github.com/pydata/xarray/issues/1269#issuecomment-280101190,https://api.github.com/repos/pydata/xarray/issues/1269,280101190,MDEyOklzc3VlQ29tbWVudDI4MDEwMTE5MA==,5635139,2017-02-15T18:47:20Z,2017-02-15T18:47:20Z,MEMBER,Would be great to test for these sorts of issues if we redo this: https://github.com/pydata/xarray/issues/1269,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,207587161