issues: 190683531
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
190683531 | MDU6SXNzdWUxOTA2ODM1MzE= | 1132 | groupby with datetime DataArray fails with `AttributeError` | 3404817 | closed | 0 | 7 | 2016-11-21T11:00:57Z | 2016-12-19T17:15:17Z | 2016-12-19T17:11:57Z | CONTRIBUTOR | I want to group some data by Oct-May season of each year, i.e. [(Oct 2000 - May 2001), (Oct 2001 - May 2002), ...]. I.e. I do not want some DJF-like mean over all the data but one value for each year. To achieve this, I construct a I give it a custom Please see this ipynb showing the error. Proposed solutionSo it turns out this can easily be fixed by changing line 226 from
to
Please see this other ipynb where the result is as expected. Now is this a bug or am I abusing the code somehow? |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/1132/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |