home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 206386864

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/818#issuecomment-206386864 https://api.github.com/repos/pydata/xarray/issues/818 206386864 MDEyOklzc3VlQ29tbWVudDIwNjM4Njg2NA== 1197350 2016-04-06T14:04:20Z 2016-04-06T14:04:20Z MEMBER

This will need to unstack to handle .apply. That will be nice for things like normalization.

Can you clarify what you mean by this? At what point should the unstack happen?

With the current code, apply seems to work ok:

``` python

da.groupby('lon').apply(lambda x : (x**2).sum()) <xarray.DataArray (lon: 3)> array([0, 5, 9]) Coordinates: * lon (lon) int64 30 40 50 ```

But perhaps I am missing a certain use case you have in mind?

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