home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 236402472

This data as json

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/pull/924#issuecomment-236402472 https://api.github.com/repos/pydata/xarray/issues/924 236402472 MDEyOklzc3VlQ29tbWVudDIzNjQwMjQ3Mg== 1217238 2016-07-31T01:49:15Z 2016-07-31T01:49:15Z MEMBER

@rabernat I updated the top post with examples. So yes, for your example, the coordinates of the output would have every unique combination of x and y. More generally, something like ds.groupby(['x', 'y']).mean() will be equivalent to ds.mean('z') for a dataset with dimensions (x, y, z). I think this is the only sane way to define these grouped operations.

Once we figure out squeezing out grouped/stacked dimensions (not quite working yet), this will let us write things like ds.groupby(['x', 'y']).apply(calculate_trend) or better yet with group_over, ds.group_over('time').apply(calculate_trend).

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  168272291
Powered by Datasette · Queries took 0.927ms · About: xarray-datasette