home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 33273199

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
33273199 MDU6SXNzdWUzMzI3MzE5OQ== 122 Dataset.groupby summary methods 2443309 closed 0     3 2014-05-11T23:28:18Z 2014-06-23T07:25:08Z 2014-06-23T07:25:08Z MEMBER      

This may just be a documentation issue but the summary apply and combine methods for the Dataset.GroupBy object seem to be missing.

``` python 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.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/122/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 2 rows from issues_id in issues_labels
  • 3 rows from issue in issue_comments
Powered by Datasette · Queries took 0.915ms · About: xarray-datasette