Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcalculating cumsums on a groupby object #3141
Comments
|
I wonder if this is as easy as adding |
|
It looks like But yes, it would be great to add this. |
|
@tommylees112 Are you up for sending in a PR. It's an easy fix... |
|
Would love to! Sorry have been away this weekend. Do i just clone the repo write the code and send in a PR in a new branch? (first PR on a public repo!) |
|
Xarray has a pretty extensive contributor's guide that you might find helpful. In short, the way to contribute changes is to create your own fork of xarray, commit/push some changes, and finally submit a pull request (PR). |
How do I go about calculating cumsums on a groupby object?
I have a
Datasetthat looks as the following:I need to
groupbyyear and calculate the cumsum for each year. That way I will have a value for eachmonth(timestep) and each pixel (lat-lonpair).But the cumsum operation doesn't work on a
groupbyobjectIs there a work around?