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 --------------------------------------------------------------------------- AttributeError Traceback (most recent call last) <ipython-input-146-eec1e73cff23> in <module>() 3 ds = xray.Dataset({'time': ('time', times), 4 'foo': (['time', 'space'], foo_values)}) ----> 5 ds.groupby('time').mean() 6 ds.groupby('time').apply(np.mean) AttributeError: 'DatasetGroupBy' object has no attribute 'mean'
Adding this functionality, if not already present, seems like a really nice addition to the package.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4