This may just be a documentation issue but the summary apply and combine methods for the Dataset.GroupBy object seem to be missing.
In [146]:
foo_values=np.random.RandomState(0).rand(3, 4)
times=pd.date_range('2000-01-01', periods=3)
ds=xray.Dataset({'time': ('time', times),
'foo': (['time', 'space'], foo_values)})
ds.groupby('time').mean() #replace time with time.month after #121 is adressed# ds.groupby('time').apply(np.mean) # also Errors here---------------------------------------------------------------------------AttributeErrorTraceback (mostrecentcalllast)
<ipython-input-146-eec1e73cff23>in<module>()
3ds=xray.Dataset({'time': ('time', times),
4'foo': (['time', 'space'], foo_values)})
---->5ds.groupby('time').mean()
6ds.groupby('time').apply(np.mean)
AttributeError: 'DatasetGroupBy'objecthasnoattribute'mean'Adding this functionality, if not already present, seems like a really nice addition to the package.
This may just be a documentation issue but the summary apply and combine methods for the
Dataset.GroupByobject seem to be missing.Adding this functionality, if not already present, seems like a really nice addition to the package.